This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Static Linking stdc++
Hi there,
You could probably simplify the link command a bit
by using gcc without the -nostdlib option to drive
the system linker and add the required C++ libs. You
would have to figure out, which ones by hand, i guess.
You would only gain a shorter link command though, the
real work behind the scenes is still the same.
I dont think, it is a matter of anyone making mistakes.
If you want to do a custom linking of your object files,
you have to be prepared to talk to the linker. Passing
linker options to control the linkage of a compilers
supporting libs through the compiler without checking,
what is actually going on under the hood can lead to
very peculiar results.
Yours sincerely,
Bjorn