[oclug] gcc and the STL. Linking errors?

Scott Moynes smoynes at nexus.carleton.ca
Fri Oct 11 14:17:20 EDT 2002


* Mike Milner (milner at hotmail.com) wrote:
> I use the gmake command to compile my project as follows:
> 
> gcc -xc++ -g -Wall -c test.cpp
> gcc -g -Wall -o test test.o

You probably want to use g++ -g -Wall -o test test.o

Cheers.
-- 
Scott Moynes http://www.icculus.org/openbox/
"Computer science is as much about computers
as astronomy is about telescopes." -- Dijkstra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://tux.oclug.on.ca/pipermail/oclug/attachments/20021011/4d48101c/attachment.bin


More information about the OCLUG mailing list