Friday 15 May 2015

java - How are global variables handled in JNI? -



java - How are global variables handled in JNI? -

i have utilize jni java , c++ project, got quick overview of subject, 1 question arise : if c++ function i'm trying phone call within java code references global variable (in .cpp file) ? jni can't phone call directly, global variables have loaded, , in same address function. how done ?

jni doesn't have anythung it. variable there in .cpp file, c++ function uses it, compiles , links, period.

java c++ jni

No comments:

Post a Comment