delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "A. Sinan Unur" <asu1 AT cornell DOT edu> |
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: | <Xns91D854176A1BBasu1cornelledu@132.236.56.8> |
References: | <a7cg8d$k6fmh$1 AT ID-79865 DOT news DOT dfncis DOT de> <a7cgu0$a9t$1 AT antares DOT lu DOT erisoft DOT se> <a7ci0k$ker2u$1 AT ID-79865 DOT news DOT dfncis DOT de> |
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" <alexvn AT bigfoot DOT com> wrote in news:a7ci0k$ker2u$1 AT ID-79865 DOT news DOT dfncis DOT de: > > "Martin Stromberg" <eplmst AT lu DOT erisoft DOT se> 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |