This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
CNI
- From: "dipen nipun shah" <dipshah at rediffmail dot com>
- To: java at gcc dot gnu dot org
- Date: 10 Jan 2002 07:22:50 -0000
- Subject: CNI
- Reply-to: "dipen nipun shah" <dipshah at rediffmail dot com>
Hello I want to use java class object in C program for that I've wrriten code like
#include<stdio.h>
#include <gcj/cni.h>
//#include <java/lang/Math.h>
using java::lang::Math;
main()
{
jdouble d1 = (java::lang::Math::random());
printf("is %d",d1);
}
but when I've compiled this code in Linux by giving
c++ First.c
it is giving me error like
/tmp/ccMXgkFb.o(.test+0x7) Undefined reference to java::long::Math::random()
My E-mailID is dipshah@rediffmail.com
Any help on these issues or any informed opinions on which implementation route to take would be greatly appreciated