I'm trying to compile the C code portion of the JNI demo on the java.sun.com site. I have all the proper code correct (as taken from the site) but it won't compile. Here's my command and response:
------command----------------- tbeamish302: gcc -I/project/tim/java-1_4_1_01/j2sdk1.4.1_01/include/ -I/project/tim/java-1_4_1_01/j2sdk1.4.1_01/include/linux/ HelloWorldImp.c -------response------------------ /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status ---------------------------------
Does anyone know why this isn't working? Please email me directly at tim_beamish@hotmail.com