This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: newbie compilation problem
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: james_williams <james_williams at optusnet dot com dot au>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 03 Dec 2001 17:01:50 +1300
- Subject: Re: newbie compilation problem
- References: <3C0B9AF9.7020607@optusnet.com.au>
james_williams wrote:
> 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
This means that the linker couldn't find the class you specified with
"--main".
Check that "XEnvironment" is really the name of a java class in your
project (including package name!) and it is present in either
"XEnvironment.0" or "XEnvironment2.0".
regards
Bryce.