newbie compilation problem

Anthony Green green@redhat.com
Sun Dec 2 22:18:00 GMT 2001



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



More information about the Java mailing list