CLASSPATH problems
Jeff Sturm
jsturm@one-point.com
Tue Jun 26 11:07:00 GMT 2001
On 2001年6月26日, Art Werschulz wrote:
> % gcj -c Foo.java
> % gcj -o Foo --main=Foo Foo.o
> Foo.o: In function `Foo::main(JArray<java::lang::String *> *)':
> /u/sobolev/agw/tmp/Foo.java:6: undefined reference to `_CL_3Bar'
You need to do something similar to:
gcj -c Foo.java
gcj -c Bar.java
gcj -o Foo --main=Foo Foo.o Bar.o
(inserting paths where needed.)
> BTW, if I change the first line of Foo.java to be
> import Bar.*;
That won't work... `Bar' is not a package name.
Jeff
More information about the Java
mailing list