newbie compilation problem

Bryce McKinlay bryce@waitaki.otago.ac.nz
Sun Dec 2 20:00:00 GMT 2001


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.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /