lists.zerezo.com



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

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



Hi All:

I compile "test.cpp" with:
gcc -c test.cpp -o test.o

and then link with:
g++ test.o -o test.exe

It works well.

But in my firm's project there are too many object files, so I put these object files path in a response file, for example "proj.rsp". Then I link with:
g++ -o proj.exe -Wl,@"proj.rsp"
This command does not link with libstdc++.
If I link with:
g++ -o proj.exe -Wl,@"proj.rsp" -lstdc++
It works well.

I remember that g++ will automatic link libstdc++. Why does the first command not work?

Thanks

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