[jnc-users] Need help setting up JNC to run simple HelloWorld
Status: Beta
Brought to you by:
soapy
|
From: Spring H. <spr...@ya...> - 2007-08-07 17:14:39
|
I use JNC 1.1.1 on windows with gcc-122233-lin (~280Megs folder) downloaded from JNC website several days ago. My OS is WinXP SP2 and I had a problem while compiling my simple Helloworld code to run on Linux as below.
class HelloWorld
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}
The Compiler returns this error message.
creating "Hello.so" for Linux
- main compilation step
[C:\NativeCompiler\gcc-122233-lin\gcc-122233-lin\bin\gcj
--main=HeloWorld
-fjni
-Djava.library.path=lib
-Dsun.java2d.fontpath=
-Djava.home=.
-Djava.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
-Llibs/lin
-Ilibs/lin/gui/gui.jar
-oC:\NativeCompiler\JavaNativeCompiler-1.1.1\Hello.so
-s
-O2
-IC:\NativeCompiler @C:\DOCUME~1\user\LOCALS~1\Temp\JNCTempbvr71c.out\SourceListbvr71d.list]
C:\DOCUME~1\user\LOCALS~1\Temp/ccY9caaa.o: In function `main':cc0Ecaaa.i:(.text+0x29): undefined reference to `HeloWorld::class$$'
collect2: ld returned 1 exit status
failed...
---------------------------------
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. |