delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/06/21:30:32

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
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: <r7cdrs07hqu898j04lvt64gldthj56qddv@4ax.com>
References: <48m7rskj9ef5rvmeavlb7i0u0b7eeu0n8j AT 4ax DOT com>
NNTP-Posting-Host: modem-37.draugluin.dialup.pol.co.uk
Mime-Version: 1.0
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 <iam AT home DOT com> 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.  

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019