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

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -