Under gcc (g++), I have compiled a static .a
(call it some_static_lib.a
) library. I want to link (is that the right phrase?) this .a
file into another dynamic library (call it libsomeDyn.so
) that I'm building. Though the .so
compiles, I don't see content of .a
under .so
using nm
command:
/usr/bin/g++ -fPIC -g -O2 -Wall -Werror -pipe -march=pentium3 -mtune=prescott -MD -D_FILE_OFFSET_BITS=64 -DLINUX -D_GNU_SOURCE -D_THREAD_SAFE -I../../../../../../../../ -I../../../../../../../..//libraries -Wl,-rpath,/usr/lib -o libsomeDyn.so some.o another.o some_static_lib.a -shared -Wl -x -Wl,-soname,libsomeDyn.so
I do not see functions under some_static_lib.a
under libsomeDyn.so
. What am I doing wrong?