This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

CNI problem on MS Windows (GCC 3.4)


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'


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]