[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    How do I use -fexceptions?
From:       "Steven T. Hatton" <hattons () globalsymmetry ! com>
Date:       2004-05-21 5:21:21
Message-ID: 200405210121.28413.hattons () globalsymmetry ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to figure out how to get a project that uses exceptions to build. 
I'm using GCC 3.3.2. The error I get is at the end of this output from the 
build process:

make[2]: Entering directory `/home/hattons/code/c++/gs/gsgrapher/src'
if g++ -DHAVE_CONFIG_H -I. -I/home/hattons/code/c++/gs/gsgrapher/src -I.. 
- -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include   
- -DQT_THREAD_SUPPORT -fexceptions -D_REENTRANT  -Wnon-virtual-dtor 
- -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi 
- -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts 
- -O2 -fexceptions -Wformat-security -Wmissing-format-attribute -fno-exceptions 
- -fno-check-new -fno-common  -MT rectangle.o -MD -MP -MF ".deps/rectangle.Tpo" 
\
  -c -o rectangle.o `test -f 'rectangle.cpp' || echo 
'/home/hattons/code/c++/gs/gsgrapher/src/'`rectangle.cpp; \
then mv -f ".deps/rectangle.Tpo" ".deps/rectangle.Po"; \
else rm -f ".deps/rectangle.Tpo"; exit 1; \
fi
rectangle.cpp: In constructor `
   gsgrapher::Rectangle::Rectangle(std::vector<std::pair<unsigned int, bool>, 
   std::allocator<std::pair<unsigned int, bool> > >*, const unsigned int&, 
   const unsigned int&, const unsigned int&, const unsigned int&, const 
   unsigned int&, const unsigned int&)':
rectangle.cpp:64: error: exception handling disabled, use -fexceptions to 
   enable
make[2]: *** [rectangle.o] Error 1


I've tried putting -fexceptions in the CXXFLAGS, the CFLAGS, the CPPFLAGS, and 
the CXXCPP variables.  None of these worked.  I also tried to compile with a 
different build of GCC (the 3.3.1 that shipped with SuSE 9.0).

Suggestions?

Regards,
Steven
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFArZHXwX61+IL0QsMRAgcsAJ4vGxk3EcdjtvHpPMhAv7KiNCdXEQCgk0vA
lJcVctqnEKVh2ioxOgD+6dM=
=sqow
-----END PGP SIGNATURE-----

-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic