www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/10/13/14:04:19

Message-ID: <3BC87F98.80CCD86C@earthlink.net>
From: Martin Ambuhl <mambuhl AT earthlink DOT net>
Organization: Nocturnal Aviation
X-Mailer: Mozilla 4.77 [en] (Win95; U)
X-Accept-Language: en,de-CH,fr,ru,zh-CN,ja
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compile problems when using iostream
References: <4de7a7a3 DOT 0110130313 DOT 4a086406 AT posting DOT google DOT com>
Lines: 25
Date: Sat, 13 Oct 2001 17:50:49 GMT
NNTP-Posting-Host: 209.246.76.244
X-Complaints-To: abuse AT earthlink DOT net
X-Trace: newsread2.prod.itd.earthlink.net 1002995449 209.246.76.244 (Sat, 13 Oct 2001 10:50:49 PDT)
NNTP-Posting-Date: Sat, 13 Oct 2001 10:50:49 PDT
X-Received-Date: Sat, 13 Oct 2001 10:47:04 PDT (newsmaster1.prod.itd.earthlink.net)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Garga wrote:
> 
> The problem:
> I cannot use iostream/fstream or anything like vectors that use those
> libraries because of a compiler error.

> #include <vector>
> 
> int main()
> {
> vector< int >thevec;
> thevec.push_back();
> return 1;
> }
> 
> It gives the following undefined references:
> 
> endl( ostream & )
> cerr (!!)
> and 2 times << operator whith const char pointer in the first as
> parameter and reference to ofstream class function pointer in the
> second ( I'm quite sure it is )

I cannot reproduce your problem.  Are you _sure_ this is a complete
exemplar?

- Raw text -


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