This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: newbie compilation problem
- From: Anthony Green <green at redhat dot com>
- To: james_williams <james_williams at optusnet dot com dot au>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 02 Dec 2001 22:22:31 -0800
- Subject: Re: newbie compilation problem
- References: <3C0B9AF9.7020607@optusnet.com.au>
james_williams wrote:
> I have been attempting to compile a one class program from which I have
> generated a CNI file for. The CNI file points to an
> existing library on my system. I found this scenario to be very similar
> to the CNI-3.txt example on your website.
>
> I cant seem to get this work. Here is the output
>
> [root@localhost temp]# gcj -o XEnvironment XEnvironment.0
> XEnvironment2.0 -lSDL -lsmpeg --main=XEnvironment
> /tmp/ccTc5VwOmain.i(text+0x1 a): undefined reference to '_CL_12XEnvironment'
> collect2: ld returned 1 exit status
> [root@localhost temp]#
Here's my guess...
If XEnvironment is really foo.bar.XEvironment, you need to use
--main=foo.bar.XEnvironment.
AG