Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI DLL and leading underscore  RSS feed

 
Andrzej Borucki
Ranch Hand
Posts: 86
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I compile .cpp (for example http://staff.elka.pw.edu.pl/~rnowak2/zprwiki/doku.php?id=jni) to DLL with Visual Studio, in DLL function will have underscores. But GCC compile without underscores and is error.But in project https://github.com/borisbrodski/sevenzipjbinding is used GCC for compilation and DLL has no underscores and despite this Java part found functions.
It is possible use DLL both with underscores and not?
--SOLUTION
GCC can produce entirely undecorate function name: -Wl,--kill-at linker options
(https://www.eclipse.org/forums/index.php/t/77339/)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!