[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: g++ try catch block not working.
From: |
Guy Harrison |
Subject: |
Re: g++ try catch block not working. |
Date: |
Wed, 30 Jun 2004 12:29:58 +0100 |
User-agent: |
KNode/0.7.2 |
arvind singh wrote:
Turn off html-posting in newsgroups. This is what the rest of the world will
see...
> <html><div style='background-color:'><DIV class=RTE>
> <P>I am trying to load a shared library from Java using JNI.</P>
> <P>The shared object has been compiled using g++.</P>
> <P>CFLAGS= -fPIC -O2 -march=pentium4 -funroll-all-loops<BR>OS:
> RedHat linux 8</P>
> <P>GCC_LIB=/usr/lib/gcc-lib/i386-redhat-linux/3.2<BR>LIBS=-lgcc_s</P>
> <P>G++ version: 3.2</P> <P>All the try catch blocks in the code are
> not working. Altho' the same code works just fine on windows.<BR>Am I
> missing any flags or libs?</P> <P>Any help would be appreciated.</P>
> <P>Thanks in advance.</P> <P>-Arvind</P></DIV></div><br clear=all><hr>Post
> Classifieds on MSN classifieds. <a
> href="http://g.msn.com/8HMBENIN/2749??PS=47575"> Buy and Sell on MSN
> Classifieds.</a> </html>
...and lose the advertisement!
Hmm, perhaps they default to off on your system. Pass "-fexceptions". In any
case look in the manual for that (and -fno-exceptions) on the offchance
your problem gets a mention.
--
Guy Harrison