This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]