How to debug error “Symbol lookup error: undefined symbol”
问题 I created an app (api_tests) that uses a library (libstorage.so) that linked to oracle occi library (libocci.so.12.1) and compiled it. When I run this app, I get an error: api_tests api_tests: symbol lookup error: ./libstorage.so: undefined symbol: _ZN6oracle4occi11Environment17createEnvironmentENS1_4ModeEPvPFS3_S3_mEPFS3_S3_S3_mEPFvS3_S3_E However this library with this symbol exists in the current directory: ls | grep libocci libocci.so* libocci.so.11.1* libocci.so.12.1* nm libocci.so.12.1