Static Linking stdc++

DrEvil drevil@warpcore.org
Mon Nov 11 13:41:00 GMT 2002


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).




More information about the Gcc-help mailing list