I made JNI functions and linked them with the c++ dynamic library successfully. I got all of them working just fine, but I had an issue for one function, I got symbol lookup error from the FileHandle class that I used in the c++ that I use to read data from file.
Knowing that it’s working on a normal c++ project, but not in the DLL.
/usr/lib/jvm/jdk1.7.0/bin/java: symbol lookup error: /home/…/NetBeansProjects/TRIOGUI/dist/libNativeAdd.so: undefined symbol: _ZN5Gdsii9GdsParserC1EPKcN7SoftJin10FileHandle8FileTypeEN5boost8functionIFvS2_ESaIvEEE
Java Result: 127
Can anybody help me please? 🙂
I found the problem, thanks for you all.
The library I was using had a library file “somefile.a” that I was missing from the library folder.
I got the library, included it in the project and it worked fine 🙂
Again, Thank you guys for trying to help 🙂