bug-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

istream get(char *,size) does not work with gcc 2.95.2 libstdc++-2.90.8


From: Harald van Pee
Subject: istream get(char *,size) does not work with gcc 2.95.2 libstdc++-2.90.8
Date: Thu, 28 Sep 2000 21:28:55 +0200

Hi,

I have configured gcc with 
--disable-namespace
and compiled and installed with the libstdc++-2.90.8 !
Everything works fine but I can't read 
after empty lines with the program below.

All releases I know without libstdc++-2.90.8 have no problems,
getline and getc(char) also work, even with libstdc++-2.90.8 .

Any ideas?

Harald



#include <iostream>
#include <fstream>
using namespace std;
static char input_line[1001];

int main(void)
{
char ch;

ifstream in("cglneta_input.txt");
while((in.get(input_line, 1000,'\n'),in.get(ch))) {cout << input_line <<
ch;}

}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]