title: how to link static library into dynamic library in gcc
body: <p>Under gcc (g++), I have compiled a static <code>.a</code> (call it <code>some_static_lib.a</code>) library. I want to link (is that the right phrase?) this <code>.a</code> file into another dynamic library (call it <code>libsomeDyn.so</code>) that I'm building. Though the <code>.so</code> compiles, I don't see content of <code>.a</code> under <code>.so</code> using <code>nm</code> command:</p>
  
  <blockquote>
    <p>/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</p>
  </blockquote>
  
  <p>I do not see functions under <code>some_static_lib.a</code> under <code>libsomeDyn.so</code>.  What am I doing wrong?</p>