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] |
That is indeed backwards, yes... But it's only temporary debug stuff - and hopefully it will work...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.
I now added the extern "C" part, and did a lot of make'ing. The libgcjgc_convenience.a still seem to contain a "undefined" reference to the gcj_describe_type_fn, but nevertheless, I tried compiling my application again (don't know why I tried, though), and now it no longer complains about it. Don't know if it was the "make all" or the 'extern "C"' that did it...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.
Thanks so far, Martin - still stuck behind a paranoid firewall at work!
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |