How do I use -fexceptions?
Steven T. Hatton
hattons at globalsymmetry.com
Fri May 21 06:21:21 BST 2004
-----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 at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list