Creating Shared Library: I am trying to write the ...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sailaja_Mokkapati
Posted On:   Tuesday, February 20, 2001 10:51 PM

Creating Shared Library: I am trying to write the HelloWorld program using JNI, but have a problem in creating the shared library. The error says, "JNI EXPORT, JNI CALL" are not present. Could this be a compiler problem?? I am following the steps of java.sun.com under the UNIX environment. Could anyone suggest me what the problem is and how could I solve it.

Re: Creating Shared Library: I am trying to write the ...

Posted By:   Alexander_Krapf  
Posted On:   Monday, March 19, 2001 02:22 PM

Hi Sailaja,


JNI_EXPORT and JNI_CALL are usually preprocessor macros that are defined in the platform-specific JNI header file. On Windows, that is includewin32jni_md.h, on Solaris that is include/solaris/jni_md.h. You need to have both the include and the platform specific include directory on your preprocessor include path.


Good luck,


Alex

About | Sitemap | Contact