I'm under Unix Solaris with the CC compiler. I have a C++ DLL, called "libtest.so", that I would like to execute from Java thanx to JNI. I have built a wrapper DLL, called "libwrapper.so", that contains my native method.
"libwrapper.so" talks properly with Java when I don't link it with "libtest.so" and "libtest.so" runs properly when I call it from a main function in C++.
But as I want to link them (with the option -ltest in the compilation command that I launch to get "libwrapper.so"), I get the following message error when I execute my java application : "Can't load library libwrapper.so "
How can I link "libwrapper.so" and "libtest.so" to get a wrapper DLL that is loadable by Java ?