2

I want to use dll in my java program. I saw that we want to use __declspec(dllexport) to export my function in dll. Do we also want this while exporting using jniexport for java? I am using mingw compiler?

1 Answers1

0

No, you need to wrap your dll call and use the JNIEXPORT-macro from the native-interface in Java.

The __declspec(dllexport) extension is a Microsoft-specific extension used in the VS-compiler to automatically export / import functions and classes/methods to dll's.

KimKulling
  • 2,654
  • 1
  • 15
  • 26