CNI problem on MS Windows (GCC 3.4)

Amir Bukhari ufz6@rz.uni-karlsruhe.de
Fri May 20 12:57:00 GMT 2005


I am try to learn CNI. I have just tried a very simple example:
I compiled it like c++ test.cc -lgcj 
but I got a number of undefined reference like
undefined reference to `_Jv_AllocObject'
test.o(.text$_Z14JvCreateJavaVMP14_Jv_VMInitArgs+0xd):test.cpp: undefined
reference to `_Jv_CreateJavaVM(_Jv_VMInitArgs*)'
test.o(.text$_Z21JvAttachCurrentThreadPN4java4lang6StringEPNS0_11ThreadGroup
E+0x14):test.cpp: undefined reference to `_Jv_AttachCurrentThread'
test.o(.text$_Z21JvDetachCurrentThreadv+0x7):test.cpp: undefined reference
to `_Jv_DetachCurrentThread'


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /