gcj compilation
Per Bothner
per@bothner.com
Sun Jan 25 01:57:00 GMT 2004
Fx Mx wrote:
> bash-2.05b$ gcj --main=thing thing.java
> /tmp/cceHFZpD.o(.text+0x13): In function
> `thing::main(JArray<java::lang::String*>*)':
> : undefined reference to `beasts::Animal::FreakOut()'
> collect2: ld returned 1 exit status
You need to also link in the Animal class.
Try:
$ gcj -main=thing thing.java Animal.java -o thing
$ ./thing
[At least on Unix-like systems system as GNU/Linux]
You can also use gij:
$ gij thing
--
--Per Bothner
per@bothner.com http://per.bothner.com/
More information about the Java
mailing list