Bugzilla – Bug 154318
gcj can not be started on SL 10.1-beta5
Last modified: 2006-03-01 11:40:52 UTC
I tried to compile a simple class using gcj on SL 10.1-beta5 (i586) and I got this error: --- cut --- $> gcj InvocationHelloWorld.java /usr/lib/gcc/i586-suse-linux/4.1.0/../../../crt1.o: In function `_start':init.c:(.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status --- cut --- I'll attach the class sources.
Ah, forgot to assing the bug to development-gcc@suse.de.
Created attachment 70757 [details] Sample java source
Use gcj InvocationHelloWorld.java --main=InvocationHelloWorld
Ah, I see it now. Alternatively, you can use the following command to get the bytecode (.class): gcj -C InvocationHelloWorld.java I am sorry for the noise.