This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj and JAMA


Hello,

> Delete the .class files, and:
> 
>  $ export CLASSPATH=.:/tmp/
>  $ find . -name '*.class' | xargs rm
>  $ gcj -c *.java -g
>  $ (cd util/ && gcj -c Maths.java -g)
>  $ ar r libMatrix.a `find . -name \*.o`
>  $ gcj TestMatrix.java -o TestMatrix --main=TestMatrix -L /tmp/Jama -lMatrix -g
>  $ ./TestMatrix 

Great, that works!

Thanks a lot,
Andreas

BTW: I think that I have now experienced the problem of multiple .java
files and a library don't mix too well, but that I could solve myself
by first compiling all the .o's, and then multiple .o's and the
library work together...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]