From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: STL Problems when compiling (read inside) Date: Wed, 06 Sep 2000 22:12:20 +0100 Organization: Customer of Energis Squared Lines: 23 Message-ID: References: <48m7rskj9ef5rvmeavlb7i0u0b7eeu0n8j AT 4ax DOT com> NNTP-Posting-Host: modem-37.draugluin.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news5.svr.pol.co.uk 968274785 184 62.136.158.37 (6 Sep 2000 21:13:05 GMT) NNTP-Posting-Date: 6 Sep 2000 21:13:05 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Kaos wrote: > I'm was trying out vectors (I am going to use them in a program that I > am currently writing). Everything seemed to be going great until the > "LD" phase of compiling, at which point I get this (and a bunch more > off screen): [snip errors] > Here is my code (although I'm not sure it'll help, seeing as there > doesn't seem to be anything wrong with the compiling phase...it seems > to be the linking phase): [snip code] You're right, the code is ok and this looks like a linking problem. So why didn't you show us the compile command line? !-) The problem is almost certainly that you used gcc instead of gpp. gcc will compile C++ code but does not link with the C++ standard library by default.