From: i DOT eick AT web DOT de (Ivo Eick) Newsgroups: comp.os.msdos.djgpp Subject: Re: problem with rhide under xp Date: 7 Nov 2002 23:50:50 -0800 Organization: http://groups.google.com/ Lines: 56 Message-ID: References: NNTP-Posting-Host: 194.95.207.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1036741851 17486 127.0.0.1 (8 Nov 2002 07:50:51 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: 8 Nov 2002 07:50:51 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "A. Sinan Unur" wrote in message news:... > i DOT eick AT web DOT de (Ivo Eick) wrote in > news:f1f40a0a DOT 0211071216 DOT fc82989 AT posting DOT google DOT com: > > > Hello people, > > > > today I installed rhide vers 1.4.9 as proposed by the zip-picker at > > djgpp. I could compile and run normal c-programs. But when I try to > > compile a this simple hello world program in cpp I get the following > > error messages. > > #include > > int main(void) > > { > > cout << "hello c++!\n"; > > int x = 0; > > cin >> x; > > return 0; > > } > > > > C:\DJGPP\lang\cxx\3.2\backward\iostream.h(31) in file included from > > C:\DJGPP\lang\cxx\3.2\backward\iostream.h:31, ..sources/hello.cpp(1) > > from ..sources/hello.cpp(1) > > > > and another warning. > > you need to change your code to comply with the C++ standard. it would > also not hurt to give us the exact warning messages, not snippets: > > In file included from c:/djgpp/lang/cxx-v31/backward/iostream.h:31, > from tzt.cc:1: > c:/djgpp/lang/cxx-v31/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 > header for the header for C++ includes, or instead of > the deprecated header . To disable this warning use > -Wno-deprecated. > > hmmmmm ... that is not so hard to understand, is it? > > try the following: > > #include > > using std::cout; > using std::cin; > > int main(void) > { > cout << "hello c++!\n"; > int x = 0; > cin >> x; > return 0; > } Thank you very much it's not too hard to understand and it works!