I'd like to cross-compile a gcj program for windows in linux
I already have my program compiling on the linux gcj, but i'd like to statically compile for windows.
I've failed for linux. It always says: /usr/bin/开发者_如何学Pythonld: cannot find -lgcj collect2: ld returned 1 exit status
Has anyone succeed at this (a portable java gcj binary statically liked for windows). I don't want pointers to ExcelsiorJet or launch4j (that doesn't statically or AOT compile anything).
Get the Windows GCJ from http://www.thisiscool.com/gcc_mingw.htm Follow the (GCJ 4.2) options on http://gcc.gnu.org/wiki/Statically_linking_libgcj to statically link libgcj.
Yes, it works on Wine.
精彩评论