c++ - Linking with a g++ library fails -


currently have shared library compiled gcc , have build binary (with g++) uses c shared library. works fine if compile gcc, no loading errors. if compile the shared library g++ , recompile binary uses library g++, @ runtime, complains can't find library if paths correct.

this ldd output when library compiled gcc:

ldd adas_bin | grep -i ovx /home/ubuntu/working/bin/libovx.so (0xf6e02000) 

this ldd output when compiled g++ (the file exists @ path):

ldd adas_bin | grep -i ovx /home/ubuntu/working/bin/libovx.so => not found 

this output of file command both library versions:

 elf 32-bit lsb  shared object, arm, eabi5 version 1 (sysv), dynamically linked 

when running binary library compiled g++ this:

./adasbin: error while loading shared libraries: /home/ubuntu/working/bin/libovx.so: cannot open shared object file: no such file or directory 

what may go wrong when using g++ version of library ?


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -