From kdevelop Fri May 21 06:42:07 2004 From: Ainsley Pereira Date: Fri, 21 May 2004 06:42:07 +0000 To: kdevelop Subject: Re: How do I use -fexceptions? Message-Id: <20040521064207.GB3993 () snowplains ! org> X-MARC-Message: https://marc.info/?l=kdevelop&m=108512210732251 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--FL5UXtIhxfXey3p5" --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 bui= ld.=20 > I'm using GCC 3.3.2. The error I get is at the end of this output from th= e=20 > build process: >=20 > 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..= =20 > - -I/opt/kde3/include -I/usr/lib/qt3/include -I/usr/X11R6/include =20 > - -DQT_THREAD_SUPPORT -fexceptions -D_REENTRANT -Wnon-virtual-dtor=20 > - -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi= =20 > - -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-su= bscripts=20 > - -O2 -fexceptions -Wformat-security -Wmissing-format-attribute -fno-exce= ptions=20 > - -fno-check-new -fno-common -MT rectangle.o -MD -MP -MF ".deps/rectangl= e.Tpo"=20 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, Ainsley --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAraS/F842hMDjAiIRAv1OAJ9ETeLkDfqMLf+BxWbu9441L836CQCgoQHq XWzLglCRoLiCJ/hGvno3akw= =WGT/ -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5-- - to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body: unsubscribe ;your-email-address+