This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newbie compilation problem


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]