VERY URGENT undefined symbol: __gxx_personality_v0 Error

Hi i got this error when i run the JNI Appln in linux Exception in thread "main" java.lang.UnsatisfiedLinkError: libnativelib: /root/Anand/JNIWORKFOLDER/libnativelib.so: undefined symbol: __gxx_personality_v0what is the problem?Thanks
[269 byte] By [Anand_Bala2007a] at [2007-11-27 1:11:22]
# 1

> Hi

> i got this error when i run the JNI Appln in linux

>

> xception in thread "main"

> java.lang.UnsatisfiedLinkError: libnativelib:

> /root/Anand/JNIWORKFOLDER/libnativelib.so: undefined

> symbol: __gxx_personality_v0

>

>

> what is the problem?

Compile the native code with the g++ command, not 'gcc'.

Jim S.

Niceguy1a at 2007-7-11 23:46:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
HI I compiled with g++ like thatg++ -I/usr/java/j2sdk1.4.2_13/include -I/usr/java/j2sdk1.4.2_13/include/linux -shared -olibnativelib.so passingInt.cppI got the same error ? Thanks
Anand_Bala2007a at 2007-7-11 23:46:43 > top of Java-index,Java HotSpot Virtual Machine,Specifications...