Sorry Rob,
I posted that in a haste. actually this is dragging since 1 month.. some kind of uneasiness in me.
ok fine then,
i'm using Linux. I have to create a interface for a softphone project( done in c++) in
java using JNI and swings.
i tried for month and couldn't get it right.
last thursday we e-mailed to one guy who said he has done softphone interface in JAVA using JNI(just as our requirements)
he replied, in his coding he used SWIG to generate all the wrapper classes. so we moved on to SWIG.
we are just running the sample program available in google. once we succesfully run this we plan to move to our main cpp program to create wrapper classes with SWIG.
so, we downloaded the.tar SWIG file and extracted.
now,
my c program is
my interface program is,
then i give the command
swig -java example.i
it runs and generates the files,
example.java
exampleJNI.java
example_wrap.c
the I compile the example.c and example_wrap.c files with the command
gcc -c example.c example_wrap.c -I/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/include -I/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/include/linux
it shows the errors,
th e example_wrap.c file it generated is,
kindly advise....
thanks in advance