Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot create dll with JNI

 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

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???

any suggestions please...

thanks in advance
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
bharani rao
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Ernest
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic