panzi
01-03-2003, 20:30
Was muss ich statt iostream.h unter Linux (bzw. gcc 3.2.1) verwenden?
Wenn ich iostream.h angebe kommt folgende Meldung:
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from polym.cpp:4:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
Also hab ich iostream (ohne .h) angegeben, doch dann kommt das:
polym.cpp: In member function `virtual void Horse::Gallop()':
polym.cpp:10: `cout' undeclared (first use this function)
polym.cpp:10: (Each undeclared identifier is reported only once for each function it appears in.)
polym.cpp: In function `int main()':
polym.cpp:32: `cin' undeclared (first use this function)
Sprich in iostream ist cin und cout nicht deklariert! Wo dann?
thx4help
Wenn ich iostream.h angebe kommt folgende Meldung:
In file included from /usr/include/c++/3.2/backward/iostream.h:31,
from polym.cpp:4:
/usr/include/c++/3.2/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
Also hab ich iostream (ohne .h) angegeben, doch dann kommt das:
polym.cpp: In member function `virtual void Horse::Gallop()':
polym.cpp:10: `cout' undeclared (first use this function)
polym.cpp:10: (Each undeclared identifier is reported only once for each function it appears in.)
polym.cpp: In function `int main()':
polym.cpp:32: `cin' undeclared (first use this function)
Sprich in iostream ist cin und cout nicht deklariert! Wo dann?
thx4help