Re: [Java-gnome-developer] Help me compile a Glade based app natively with GCJ
Brought to you by:
afcowie
From: Adam J. <ajo...@re...> - 2005-11-02 16:53:37
|
Spyros, You're right, this is a linker error. Try adding ':/.' to the end of your classpath and see if that helps. Adam Spyros Stathopoulos wrote: > Hi, > I am trying to compile a simple app, which uses Glade with GCJ (GCC > ver. 3.3.5 on SuSE 9.3). > So I type: > > gcj -classpath > /usr/share/java/gtk2.4.jar:/usr/share/gnome2.8.jar:/usr/share/java/glade2.8.jar > -lgtkjar2.4 -lgnomejar2.8 -lgladejar2.8 --main=Main -o Main Main.java > > What I get as a result is: > > /tmp/ccYlRfbE.o(.text+0x30): In function `main': > ccADRhVT.i: undefined reference to `Main::class$' > collect2: ld returned 1 exit status > > I do not have a clue on what to do from that point. It seems like a > linker error (correct me if I am wrong). > Do you have any ideas on what to do? > > Thanx in advance, > Spyros "Foucault" Stathopoulos > > > |