__Z12JvNumMethodsPN4java4lang5ClassE undefined

Andrew Haley aph@redhat.com
Wed Aug 9 14:14:00 GMT 2006


Juerg Lehni writes:
 > After solving the problem with libjvm.dylib, I am facing another new  
 > problem with the CVS build that did not happen before.
 > 
 > my app crashes and reports this in the console.log:
 > 
 > error code 4, error number 0 (Symbol not found:  
 > __Z12JvNumMethodsPN4java4lang5ClassE
 >    Referenced from: /usr/local/lib/libgcj.7.dylib
 >    Expected in: flat namespace
 > )
 > 
 > And indeed, this symbol is undefined in libgcj:
 > 
 > nm /usr/local/lib/libgcj.7.dylib | grep  
 > __Z12JvNumMethodsPN4java4lang5ClassE
 >           U __Z12JvNumMethodsPN4java4lang5ClassE
 > 
 > Any ideas what could be the cause of this?

JvNumMethods(java::lang::Class*) is an extern inline function in
gcj/method.h.  It's used in jni.cc and natClass.cc.  Have a look to
see which file the undefined extern reference occurs in, and we can
debug it from there.

Andrew.



More information about the Java mailing list