Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

cannot create dll with JNI

 
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
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • 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
    Bookmark Topic Watch Topic
  • New Topic