This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
CNI problem on MS Windows (GCC 3.4)
- From: "Amir Bukhari" <ufz6 at rz dot uni-karlsruhe dot de>
- To: <java at gcc dot gnu dot org>
- Date: Fri, 20 May 2005 13:21:42 +0200
- Subject: 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'