Bad patchwork: libgcj.so: undefined reference to `gcj_describe_type_fn'
Tom Tromey
tromey@redhat.com
Thu Mar 16 15:45:00 GMT 2006
>>>>> "Martin" == martin <martin@egholm-nielsen.dk> writes:
Martin> $ blah-blah-nm-blah-grep
Martin> U gcj_describe_type_fn
Is this in boehm-gc? It is somewhat odd to have boehm-gc depend on
symbols provided by libgcj -- that is backward.
Martin> and libjava/boehm.o does indeed contain the function (or what):
Martin> libjava/ $ powerpc-405-linux-gnu-nm boehm.o | grep gcj_de
Martin> 00000960 T _Z20gcj_describe_type_fnPvPc
This is the mangled form, whereas the above is not.
This is presumably because you are referencing the symbol from C
code, but the function definition is in C++. You need an 'extern "C"'
to fix this.
Tom
More information about the Java
mailing list