This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Static Linking stdc++
- From: DrEvil <drevil at warpcore dot org>
- To: GCC Help <gcc-help at gcc dot gnu dot org>
- Date: 11 Nov 2002 15:41:31 -0600
- Subject: Static Linking stdc++
Okay, I've been attempting to link -lstdc++ to a C++ program statically
using gcc as so:
gcc -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic ....
This worked fine with gcc2.x, but I can't seem to find the magic combo
with 3.x, any ideas? With 3.x it completely fails to link in stdc++ at
all, and I get undefined references to _cxa_pure_virtual, new[], etc.
Thanks
(I'm subscribed to the list).