lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



fiveight wrote on 13 May 2008 10:51:

> I am afraid that I can not pass g++ one object file, because another
> program will use the response file too. I must keep the response file
> integral. 

> Neither gcc.exe nor g++.exe understand "@" option.
> 
> So, I am in big trouble!

  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?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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