Web lists-archives.org

Re: [Mingw-users] Why does g++ not link with libstdc++?




Quoting fiveight <fiveight@xxxxxxx>:

>>  Well, or you could just manually add '-lstdc++' to your link lines (or
>> perhaps even to the response file, depending what else uses it - I think ld
>> will be happy with -l options in there) or maybe you could just have a
>> completely empty dummy .o file (try "gcc -c -xc - < /dev/null -o dummy.o" to
>> see what I mean) that you give to g++ but it doesn't get used so it doesn't
>> matter if it's not in the response file?
>
> Thank you very much, DaveK.
>
> I decide to add "-lstdc++" manually with g++.exe.
>
> I think g++.exe should automatic link with stdc++ library whether 
> there are object files in command line. Is this a bug?
>

Please do not TOP POST.

Yes it is a bug for g++ not to add the required libraries.

Earnie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users