Re: [Java-gnome-developer] Help me compile a Glade based app natively with GCJ
Brought to you by:
afcowie
From: Spyros S. <fou...@gm...> - 2005-11-02 17:59:35
|
Adam, Thank you for your answer however, adding :/. to the end of classpath, so that the command looks like: 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=3DMain -o Main Main.java yields the same result again. /tmp/ccYlRfbE.o(.text+0x30): In function `main': ccADRhVT.i: undefined reference to `Main::class$' collect2: ld returned 1 exit status Spyros "Foucault" Stathopoulos On 11/2/05, Adam Jocksch <ajo...@re...> wrote: > > 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=3DMain -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 > > > > > > > > |