Kevin Mark wrote:#include <iostream.h> int main() { cout << "Hello, World!\n"; return 0; }
~/cpluscplus\% g++ page23.cpp In file included from /usr/include/c++/3.3/backward/iostream.h:31, from
page23.cpp:1:
/usr/include/c++/3.3/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
[...]
I installed libstdc++ and gcc versions 2.95,3.2,3.3 WHAT FILES DO I HAVE TO CONFIGURE OR INSTALL! TIA -Kev
Just READ the error message is says pretty clear that you should use <iostream> INSTEAD of <iostream.h>.
and either use std::cout or put
using namespace std;
or
using std::cout;
after #including <iostream>
Lorenzo
-- +-----------------------------------------------------+ | Lorenzo Bettini ICQ# lbetto, 16080134 | | PhD in Computer Science | | Dip. Sistemi e Informatica, Univ. di Firenze | | Tel +39 055 4796741, Fax +39 055 4796730 | | Florence - Italy (GNU/Linux User # 158233) | | Home Page : http://www.lorenzobettini.it | | http://music.dsi.unifi.it XKlaim language | | http://www.lorenzobettini.it/purple Cover Band | | http://www.gnu.org/software/src-highlite | | http://www.gnu.org/software/gengetopt | | http://www.lorenzobettini.it/software/gengen | +-----------------------------------------------------+
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]