I have shared library which is dependent on a few static libraries which includes zlib etc. When I am building my shared library with the dependent static libraries with g++ (cent os 6.3) it is getting compiled fine. Now when I try to use my shared library on a test project I am getting a lot of unresolved errors. What I am doing wrong ?
g++ -L/usr/local/lib -L/home/de.../workspace/libtest/Debug -o "mytest" ./src/mytest.o -ltest
/home/de.../workspace/libtest/Debug/libtest.so: undefined reference to `BZ2_bzCompressEnd'
collect2: ld returned 1 exit status