libstdc++ linked as libstdc++.a
Christoph Bugel
chris@tti-telecom.com
Thu Nov 14 06:59:00 GMT 2002
Similar to the original poster I want to link with the *static*
libstdc++.a. However, I am distributing a shared library, not an
executable. (implemented in C++ but the API is extern "C")
linking with -static doesn't work as I expected:
Linux$ g++ -fPIC -shared -static hello.cc -o libhello.so
Linux$ ldd ./libhello.so
libstdc++.so.5 => /usr/lib/libstdc++.so.5
(etc, etc)
Do I have to use -nostdinc and pick all libraries by hand or is
there an easier way?
Thanks
More information about the Libstdc++
mailing list