www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/20/09:51:32

Message-ID: <36F3B5CD.E82F1764@lycosmail.com>
Date: Sat, 20 Mar 1999 09:50:53 -0500
From: Adam Schrotenboer <ajschrotenboer AT lycosmail DOT com>
X-Mailer: Mozilla 4.51 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Strange problem with egcs
References: <36f3a2d4 DOT 0 AT news DOT uni-bielefeld DOT de>
Reply-To: djgpp AT delorie DOT com

Did you cut and paste this code, or rewrite it??? If you rewrote it, then this is
probably not important.

If you pasted it, may i ask you another q? May I hit you softly on the head?????
make sure to please remember the .h after header files.

If you did not forget, then please disregard this message.

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?
>
> Thanks for taking the time!
>
> Manni
>
> ----------------------------------------------------------------------
> Manni Heumann
> Bielefeld, Germany
>
> Spammers use reply-address,
> all others use:         mheumann AT post DOT uni-bielefeld DOT de
> ----------------------------------------------------------------------

- Raw text -


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