gcj and JAMA
Andreas Balser
a.ba@gmx.de
Mon Apr 5 11:33:00 GMT 2004
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...
More information about the Java
mailing list