[Java-gnome-developer] Compile natively and static in windows
Brought to you by:
afcowie
From: llanero <ll...@gm...> - 2005-05-18 08:50:10
|
Hi all, does anyone know how to compile static java-gtk? A simple java app with no java-gtk code compiles great and produces a 2.0MB (stripped) static exe. But I can't get it to compile static with java-gtk. $ gcj -static -classpath gtk2.6.jar --main=3DSimple Simple.java=20 C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0x8): In function `ZN6Simple4mainEP6JArrayIPN4java4lang6StringEE': C:/msys/1.0/home/usuari/Simple.java:20: undefined reference to `org::gnu::gtk::WindowType::class$' C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0x7d):C:/msys/1.0/home/us= uari/Simple.java:22: undefined reference to `org::gnu::gtk::Gtk::init(JArray<java::lang::String*>*)' C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0x8c):C:/msys/1.0/home/us= uari/Simple.java:23: undefined reference to `org::gnu::gtk::Window::class$' C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xa1):C:/msys/1.0/home/us= uari/Simple.java:23: undefined reference to `org::gnu::gtk::WindowType::class$' C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xaf):C:/msys/1.0/home/us= uari/Simple.java:23: undefined reference to `org::gnu::gtk::WindowType::TOPLEVEL' C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xbe):C:/msys/1.0/home/us= uari/Simple.java:23: undefined reference to `org::gnu::gtk::Window::Window(org::gnu::gtk::WindowType*)' C:/DOCUME~1/usuari/CONFIG~1/Temp/cccpbaaa.o(.text+0xf4):C:/msys/1.0/home/us= uari/Simple.java:25: undefined reference to `org::gnu::gtk::Gtk::main()' collect2: ld returned 1 exit status --=20 Manel Clos ll...@gm... http://www.webpersonal.net/llanero/ |