The version I am using can't understand "using namespace std". Where can i download the latest version? Which one is the latest?
Five answers:
jplatt39
2010-02-07 04:03:20 UTC
The language spec changed in 1998 to include the std namespace as a mandatory thing. There were other changes but nobody CAN implement the whole standard and it just happens GCC implements more of it than most proprietary compilers. Thus they had this first. I can be snide and ask you what OS you are on. Yes, actually it does matter. The current release is 4.4.3 but on my Gentoo Linux system I am running 4.3.4 and there are good reasons why they don't encourage us to upgrade (the OS kernel uses the C libraries for the compiler dynamically and this means if you upgrade the compiler you have to recompile the kernel. Which is good, pleasant fun like root canals and cleaning toilets those other joyous things). From Linux you generally get it through your distributor. For Mac OS X you can register with Apple and download it from them. With Windows you have several options, including Dev C++
http://gcc.gnu.org/
Actually gcc is part of the GNU tools, which means generally if you install a package called GCC that is only part of what you have to install. On linux you would install binutils and coreutils as well. On the old djgpp you would just install binutils which includes everything else, while these days the best packages are Mingw
http://www.mingw.org
And cygwin:
http://www.cygwin.org
Any Visual C++ compiler after Visual C++ 6 recognizes using namespace std though. I believe they are up to 8 though it could be just 2008 is the compiler's name. Gcc implements more of the standard but as long as they are consistent with it it doesn't matter what version you are using.
I am not recommending Digital Mars because you want the latest and you appear to want it flashy. I don't know how up to date it is and it is emphatically not flashy. Furthermore I find when compiling from the command line I have to write a batch file or use VERY tortured syntax, but it is AWESOME POWERFUL EFFICIENT and does a LOT with the syntax it implements (which is from the complete standard). If it is not the latest or the fanciest it is one of the best compilers out there.
?
2016-04-08 11:06:35 UTC
Both C and C++ compilers can be had for free download from links to the URL below. Tutorials, reviews, IDEs, libraries and editors are all available for a wide range of languages and platforms. Good luck.
Just Some Guy
2010-02-07 03:29:46 UTC
I'm running g++ (GCC) 4.4.2
it recognises using namespace std, not sure if that helps.
anonymous
2010-02-07 03:29:19 UTC
Browse over http://www.compilers.net
anonymous
2010-02-07 03:59:23 UTC
uh ay compiler should be able to understand that... just downlod dev c++ it should work fine
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.