Help using -I

Anthony Green green@redhat.com
Wed Aug 6 04:15:00 GMT 2003


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.



More information about the Java mailing list