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]

Re: CLASSPATH problems




On Tue, 26 Jun 2001, 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



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