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]

Re: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory


http://gcc.gnu.org/wiki/Statically%20linking%20libgcj

My GCC version is 4.1.2 (2006-9-28 prerelease, Ubuntu 4.1.1.14ubuntu7), not 4.2 but still I can use -static-libgcj option.

Trying the following command line replacing Foo with my own classes
and object files, gives me cannot file -lsupc++.
gcc -o Foo Foo.o Foomain.i -shared-libgcc -Wl,-non_shared -lgcj
-Wl,-call_shared -lsupc++ -Wl,--as-needed -lz -lgcc_s -lpthread -lc
-lm -ldl -Wl,--no-as-needed

As I remove -lsupc++, after some moments it gives me a number of
undefined reference error, for whatever exception thrown from my java
code (or other libraries):
undefined reference to `_Jv_ThrowXYZException'

Thanks.


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