• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JNI DLL and leading underscore

 
Ranch Hand
Posts: 101
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/)
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic