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: Help using -I


On Tue, 2003-08-05 at 18:30, Ryan Boder wrote:
> I'm trying to compile a command line client for my jboss application with
> gcj. I thought I'd spare you all the details, so here is a little program
> that has the same problem I am having with my jboss client. Why does it say
> there are undefined references, when the classes are obviously there? It
> works fine when I don't use -I. Does -I work at all?

-I only modifies the classpath, it doesn't tell the compiler what to
include in the link.

I believe your link line should look like this:

	gcj --main=bob.Main bob/Main.java bob.jar -o $@ $<

AG

-- 
Anthony Green <green@redhat.com>
Red Hat, Inc.


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