Question

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? :)

Was it helpful?

Solution 2

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 :)

OTHER TIPS

I find your symbol highly suspicious. Incorrect mangling. How did you get it? Is it copy&paste from somewhere? Did you try to hack it? 10FileHandleF8ileType should be 10FileHandle8FileType. Then it turns to a valid symbol Gdsii::GdsParser::GdsParser(char const*, SoftJin::FileHandle::FileType, boost::function >)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top