Newsgroups: comp.os.msdos.djgpp From: manni AT hotbot DOT com (Manni Heumann) Subject: Strange problem with egcs X-Newsreader: News Xpress 2.01 Date: Sat, 20 Mar 1999 13:29:41 GMT NNTP-Posting-Host: ppp36-89.hrz.uni-bielefeld.de Message-ID: <36f3a2d4.0@news.uni-bielefeld.de> X-Trace: 20 Mar 1999 14:29:56 +0200, ppp36-89.hrz.uni-bielefeld.de Lines: 44 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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 #include 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 ,__default_alloc_template > &)' Now, this function is declared in 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 ----------------------------------------------------------------------