www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/20/13:18:47

Message-ID: <B0000080346@stargate.astr.lu.lv>
From: "Andris Pavenis" <pavenis AT lanet DOT lv>
To: manni AT hotbot DOT com (Manni Heumann), djgpp AT delorie DOT com
Date: Sat, 20 Mar 1999 20:18:32 +0200
MIME-Version: 1.0
Subject: Re: Strange problem with egcs
In-reply-to: <36f3a2d4.0@news.uni-bielefeld.de>
X-mailer: Pegasus Mail for Win32 (v3.02b14)
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On 20 Mar 99, at 13:29, Manni Heumann wrote:

> I wonder if anybody else has had this problem:
> 
> I just downloaded the egcs 1.1.2 binaries for DJGPP (latest version). Then I 
> backuped my djgpp directory and installed the files like the egcs docs said.
> 
> Everything went fine, so I recompiled one of my projects and discovered an 
> error that I find very strange. It all boils down to a very simple little 
> program:
> 
> #include <fstream>
> #include <string>
> 
> int main ()
> {
>     ifstream in ("test.dat");
>     string str;
>     getline (in, str);
> }
> 
> This won't compile. The compiler says: 
> no matching function for call to `getline (ifstream &, basic_string<char, 
> string_char_traits<char> ,__default_alloc_template <false,0> > &)'
> 
> Now, this function is declared in <bastring.h> and this file will get included 
> in my program (I checked the preprocessor output). My old djgpp installation 
> had no problems at all with this code.
> 
> Anyone had the same problem? Any ideas? Could anyone try this with his egcs 
> installation?

Tried. Didn't met any compilation problems (also no linker problems) with egcs-
1.1.2. Make sure You don't have old include files in lang/cxx.

Andris

- Raw text -


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