How do I use -fexceptions?
kdevgeneral at pebble.org.uk
Fri May 21 07:42:07 BST 2004
On Fri, May 21, 2004 at 01:21:21AM -0400, Steven T. Hatton wrote:
> 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: 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"
You have both -fexceptions and -fno-exceptions in there. I think you
just need to take -fno-exceptions out. (In fact, I think you could
probably take both out, exceptions should be on by default.)
Hope that helps,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the KDevelop