i have a c++ coding for a softphone. I opened that file in vc++ and i'm able to create a .exe file from that.
the .exe file is running fine( it is searching for the server and is getting registered there).
now i wanted to add jni to it.
so i have written a java program to one of the methods in the c++ program( void pjstart() ), compiled it and created a header file.
now i replaced the c++ function with the stuff generated in the header file,( JNIEXPORT void JNICALL Java_test_pjstart(JNIEnv *env, jobject jobj) )
now i'm unable to build that file in vc++. it is showing some errors..
why is that throwing errors...
is there something wrong???
Ummm... this is a page full of C++ compiler errors. You treat it just like a page of Java compiler errors. You go to the first one, and find out what the problem is, fix it, and compile again. I'm not really sure what's up with the xiosbase errors, so I might look first at line 37 of c:\program files\microsoft visual studio 8\vc\bin\test1\test1\test1.cpp and see why it wants a semicolon.
All this presupposes that you actually know C++. If you don't, then go off and learn some, and then come back to this project!