Hi,
Ich weiß nicht warum, aber der gcc 3.3.5 Compilier lässt mich folgendes Programm nicht kompilieren:
#include <string>
int main(void) {
string teststring;
return 0;
}
g++ -o stringtest stringtest.cpp ist der Befehl,den ich zum Kompilieren verwende.
Allerdings bekomme ich folgende Fehlermeldung:
stringtest.cpp: In function int main()': stringtest.cpp:4: error:
string' undeclared (first use this function)
stringtest.cpp:4: error: (Each undeclared identifier is reported only once for
each function it appears in.)
stringtest.cpp:4: error: parse error before `;' token
Was soll das? string ist doch ein Datentyp in C++, also warum kann ich das Programm so nicht kompilieren?
Markus.
--
sh:( fo:| ch:? rl:( br:> n4:( ie:{ mo:) va:) de:] zu:) fl:( ss:| ls:] js:|
sh:( fo:| ch:? rl:( br:> n4:( ie:{ mo:) va:) de:] zu:) fl:( ss:| ls:] js:|