8 Nov
2002
8 Nov
'02
17:56
On Fri, 08 Nov 2002 at 17:40 (+0100), Arvin Schnell wrote:
On 8 Nov 2002, Wolfgang Hinsch wrote:
Hallo Liste, ich sitze über einem Problem mit C++. Anscheinend haben sich die include-Dateien für c++ radikal verändert. Folgendes Programm:
#include <string> main (int argc, char**argv) { string xyz; }
lässt sich unter SuSE 8.0 noch problemlos mit
g++ -c
kompilieren. Unter 8.1 kennt er keine Strings mehr.Ist C++ nicht mehr portabel?
gcc 3.2 verwendet namespaces. schreibt also std::string oder einmal using std::string.
using namespace std; müsste auch richtig sein. Gruß, Bernhard -- /* * Please skip to the bottom of this file if you ate lunch recently * -- Alan */