I am new to this forum. I am sorry if I posted in the wrong place. I am trying to execute the code in the link http://www.codeproject.com/KB/cpp/CJniJava.aspx . But, I am getting the following error when I compile CTest.cpp
In function `ZN7JNIEnv_17GetStaticMethodIDEP7_jclassPKcS3_'
[Linker error] undefined reference to `_imp__JNI_CreateJavaVM@12'
ld returned 1 exit status