I run a project for JNI for both compilers: MSVC ++ 8.0 and 9.0, my cpp file contains the following implementation: extern "C" {JNIEXPORT jlong ββJNICALL Java_context_ServiceProviderContext_StartServiceProvider (JNIEnv * env, jclass, jstring jspath) {..... }
Using the depend.exe utility, I see that MSVC 8.0 successfully exports the function, as expected: Java_context_ServiceProviderContext_StartServiceProvider
But compiling under MSVC 9.0 drives me crazy, it is exported as ignoring extern "C" in general. depends.exe shows me: _Java_context_ServiceProviderContext_StartServiceProvider @ 12
Does anyone know what exactly in project 9.0 causes this behavior?
Dewfy source
share