Package: g++-3.2 Version: 1:3.2.1-0pre3 Severity: normal Sorry if this is not a bug, but I cannot find any way why it isn't. I cannot make iostream work. The appended short program compiles (and works) okay with g++-2.95, but does not compile with either 3.0 or 3.2 (against which this report is sent). The error messages are:
g++-3.2 bin2a.cc -o bin2a bin2a.cc: In function `int main(int, char**)': bin2a.cc:9: `cerr' undeclared (first use this function) bin2a.cc:9: (Each undeclared identifier is reported only once for each function it appears in.) bin2a.cc:10: `ifstream' undeclared (first use this function) bin2a.cc:10: parse error before `(' token bin2a.cc:12: `f' undeclared (first use this function) bin2a.cc:13: `cout' undeclared (first use this function) make: *** [bin2a] Error 1 -- System Information Debian Release: testing/unstable Kernel Version: Linux pot.cnuce.cnr.it 2.4.18 #2 Mon Jul 29 12:21:48 CEST 2002 i686 Pentium II (Deschutes) GenuineIntel GNU/Linux Versions of the packages g++-3.2 depends on: ii gcc-3.2 3.2.1-0pre3 The GNU C compiler. ii gcc-3.2-base 3.2.1-0pre3 The GNU Compiler Collection (base package). ii libc6 2.2.5-14.3 GNU C Library: Shared libraries and Timezone ii libstdc++5-dev 3.2.1-0pre3 The GNU stdc++ library version 3 (developmen ===File /tmp/bin2a.cc======================================= #include <iostream> #include <fstream> // Leggi da file in binario e scrivi su standard input in ascii int main (int argc, char *argv[]) { if (argc != 2) { cerr << "Un argomento richiesto: nome del file di ingresso\n"; exit (1); } ifstream f (argv[1], ios::bin|ios::in); double x; while (f.read(&x, sizeof(x))) cout << x << '\n'; return 0; } ============================================================