GCJ-gererated Executables crashes with segfault when statically linked.
Sat Nov 23 15:02:00 GMT 2002
The problem occured with two completly different libs, but both are
using jni. I dont have tried any other libs with gcj till now...
gcj libswt.a code.java -o test //This works fine, althought IÂ´ve t do
first compiling, that linkning, not as shown here
gcj libswt.a libgcj.a code.java -o test //The executable crashes with
segfault at startup. (IÂ´e tols the compilier to not use the shared
version of libgcj.so (simply deleted it))
gcj libswt.so code.java -static -o test //The executable crashes again...
Even first compiling and than linking doesnt have an influence to the
So what I need to do, that I can use a statically linked (libgcj,
libswt) program, that runs without any external libs (except from libs
installed on every system like libc).
Sorry for asking so much stuff, butt gcj is really a very great program,
but a little bit very complex for a stupid newbie like me. So please
dont feel angry, if IÂ´m nerving you. Newbies can be so nerving *g*
More information about the Java