X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp,comp.lang.c++ Subject: Re: Different results of compilation with gpp 2.95.3 and 3.0.4 Date: 21 Mar 2002 13:16:05 GMT Organization: Cornell University Lines: 28 Sender: asu1 AT cornell DOT invalid (on pool-141-149-208-129.syr.east.verizon.net) Message-ID: References: NNTP-Posting-Host: pool-141-149-208-129.syr.east.verizon.net X-Trace: news01.cit.cornell.edu 1016716565 14919 141.149.208.129 (21 Mar 2002 13:16:05 GMT) X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu NNTP-Posting-Date: 21 Mar 2002 13:16:05 GMT User-Agent: Xnews/L5 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Alex Vinokur" wrote in news:a7ci0k$ker2u$1 AT ID-79865 DOT news DOT dfncis DOT de: > > "Martin Stromberg" wrote in message > news:a7cgu0$a9t$1 AT antares DOT lu DOT erisoft DOT se... >> Alex Vinokur (alexvn AT bigfoot DOT com) wrote: >> : Here is some code. >> : It had no problem with gpp -> GNU C++ version 2.95.3 20010315/djgpp >> : . >> >> : What has been changed in gpp -> GNU C++ version 3.0.4 (djgpp) ? >> >> If I understood it correctly, 3.0.X is much more C++ standard >> compliant. > > So, what is wrong in my code? You need to either prefix each name from the standard namespace with std:: or add a using declaration for it. for example: using std::cout; or std::cout << "sadkjf" << std::endl; sinan.