This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Help using -I
- From: Anthony Green <green at redhat dot com>
- To: Ryan Boder <icanoop at bitwiser dot org>
- Cc: java at gcc dot gnu dot org
- Date: 05 Aug 2003 21:15:34 -0700
- Subject: Re: Help using -I
- Organization: Red Hat, Inc.
- References: <20030806013050.GI31702@bitwiser.org>
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.