I am writing a Java program and I have run up on an i/o problem that requires me to write it in C and use the java native interface. I am using Jbuilder on Linux (the freebe I downloaded) and it doesn't seem to have any native help built in. Furthermore I wrote the code following the example on the sun website tutorial and I get the following error message when I try to compile my code into a library;
the command line is:
[edie@sloth trac2001]$ g++ -I/usr/local/java/jdk1.3/include -I/usr/local/java/jdk1.3/include/linux linuxInput.c -o liblinuxinput.so
which produces the error message:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
ib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
Does anyone know what is going on here?
Thanks
the command line is:
[edie@sloth trac2001]$ g++ -I/usr/local/java/jdk1.3/include -I/usr/local/java/jdk1.3/include/linux linuxInput.c -o liblinuxinput.so
which produces the error message:
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
ib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start':
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status
Does anyone know what is going on here?
Thanks