JNI “symbol lookup error” in shared library on Linux

前端 未结 2 540
不知归路
不知归路 2021-01-04 12:39

What do you do when the Java VM has a “symbol lookup error” when executing a JNI function? The symbol lookup error is not in the primary shared object library that support

2条回答
  •  盖世英雄少女心
    2021-01-04 13:11

    I had similar problem, and later I found it was the problem of linking order:

    you need to put -L/usr/local/lib -lnetsnmp after the -o libmytest.so for it to work.

提交回复
热议问题