Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Errore con makefile [RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
luca82
Guru
Guru


Joined: 22 Oct 2003
Posts: 306
Location: Somewhere Between Heaven and Hell

PostPosted: Sun Mar 20, 2005 10:20 am    Post subject: Errore con makefile [RISOLTO] Reply with quote

Ciao a tutti,
sto provando a compilare un file java con gcj, ma ho un problema quando provo a compilarlo in modo nativo.
Se lo compilo con l'opzione -C per ottenere il file class funziona:
Code:
gcj -C -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/lib/glade2.8.jar Main.java

Se invece provo a compilarlo come eseguitbile ottengo questo errore:
Code:
gcj -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/lib/glade2.8.jar -lgtkjava-2.6 and -lgladejava2.8 --main=Main -o jquote Main.java
gcj: and: No such file or directory

Qualcuno a qualche suggerimento?
Grazie


Last edited by luca82 on Sun Mar 20, 2005 12:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
grentis
Guru
Guru


Joined: 20 Jul 2004
Posts: 321

PostPosted: Sun Mar 20, 2005 10:42 am    Post subject: Reply with quote

Ciao...premetto che non so assolutamente nulla dell'uso di gcj...cmq l'errore viene segnalato nell'and tra -lgtkjava-2.6 e -lgladejava2.8
Code:
gcj -classpath /usr/share/libgtk-java-2.6/lib/gtk2.6.jar:/usr/share/java-gnome/lib/glade2.8.jar -lgtkjava-2.6 and -lgladejava2.8 --main=Main -o jquote Main.java
gcj: and: No such file or directory


Sicuro che si scriva cosi? Perche' lui vede l'and come il file da compilare e non trovandolo da errore...io proverei a togliere quell'and e a lasciare tutto il resto uguale
Back to top
View user's profile Send private message
luca82
Guru
Guru


Joined: 22 Oct 2003
Posts: 306
Location: Somewhere Between Heaven and Hell

PostPosted: Sun Mar 20, 2005 12:57 pm    Post subject: Reply with quote

Grazie, non so come ci sia finito quell' "and"... comunque era lui il problema.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum