<p>What are some suggestions for easy to use C++ compilers for a beginner? Free or open-source ones would be preferred.</p>

[{'answer_id': 77146, 'author': 'Keith Nicholas', 'author_id': 10431, 'author_profile': 'https://Stackoverflow.com/users/10431', 'pm_score': 1, 'selected': False, 'text': '<p>Microsoft Visual Studio Express Edition of their C++ compiler is good</p>\n'}, {'answer_id': 77147, 'author': 'Matt Price', 'author_id': 852, 'author_profile': 'https://Stackoverflow.com/users/852', 'pm_score': 5, 'selected': True, 'text': "<p>GCC is a good choice for simple things.</p>\n\n<p>Visual Studio Express edition is the free version of the major windows C++ compiler.</p>\n\n<p>If you are on Windows I would use VS. If you are on linux you should use GCC.</p>\n\n<p>*I say GCC for simple things because for a more complicated project the build process isn't so easy</p>\n"}, {'answer_id': 77154, 'author': 'toluju', 'author_id': 12457, 'author_profile': 'https://Stackoverflow.com/users/12457', 'pm_score': 2, 'selected': False, 'text': '<p>I\'d recommend using <a href="http://www.bloodshed.net/devcpp.html" rel="nofollow noreferrer">Dev C++</a>. It\'s a small and lightweight IDE that uses the mingw ports as the backend, meaning you\'ll be compiling the the defacto C/C++ compiler, <a href="http://gcc.gnu.org/" rel="nofollow noreferrer">gcc</a> </p>\n'}, {'answer_id': 77159, 'author': 'Jonathan Mueller', 'author_id': 13832, 'author_profile': 'https://Stackoverflow.com/users/13832', 'pm_score': 2, 'selected': False, 'text': '<p>G++ is the GNU C++ compiler. Most *nix distros should have the package available.</p>\n'}, {'answer_id': 77162, 'author': 'MP24', 'author_id': 6206, 'author_profile': 'https://Stackoverflow.com/users/6206', 'pm_score': 2, 'selected': False, 'text': '<p>You can always use the C++ compiler from the Gnu Compiler Collection (GCC). It is available for almost any Unix system on earth, BSDs, Mac OS, Linux, and Windows (via Cygwin or mingw).</p>\n\n<p>A number of IDEs are supporting the GCC C++ compiler, e.g. KDevelop under Linux/KDE, or Dev-CPP as mentioned in other posts.</p>\n'}, {'answer_id': 77170, 'author': 'Tom Ritter', 'author_id': 8435, 'author_profile': 'https://Stackoverflow.com/users/8435', 'pm_score': 2, 'selected': False, 'text': "<p>For a beginner: g++ --pedantic-errors -Wall</p>\n\n<p>It'll help enforce good programming from the start.</p>\n"}, {'answer_id': 77201, 'author': 'INS', 'author_id': 13136, 'author_profile': 'https://Stackoverflow.com/users/13136', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://www.codeblocks.org/" rel="nofollow noreferrer">CodeBlocks</a> is a very good IDE that can use besides many other compilers CL.EXE (from visual studio) and gcc. It comes also in a version with gcc included.</p>\n\n<p>Visual Studio Express edition is avery good choice also (with Platform SDK if you will develop application that call winapi functions). </p>\n'}, {'answer_id': 77215, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>gcc with -Wall (enable all warnings) -Werror (change warnings into errors), -pedantic (get warnings for non-standard code) and -ansi (make the standard c++98).</p>\n\n<p>If a warning is something you're aware of and need to turn off, you can always turn them back into warnings.</p>\n"}, {'answer_id': 77245, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': "<p>Eclipse is a good one for mac, or Apple's own free Xcode which can be d/l'd off their development site.</p>\n"}, {'answer_id': 77307, 'author': 'magpulse', 'author_id': 13581, 'author_profile': 'https://Stackoverflow.com/users/13581', 'pm_score': 2, 'selected': False, 'text': "<p>I recommend gcc because it's designed to be used on the command line, and you can compile simple programs and see exactly what's happening:</p>\n\n<pre><code>g++ -o myprogram myprogram.cc\nls -l myprogram\n</code></pre>\n\n<p>One file in, two files out.  With Visual C++, most people use it with the GUI, where you have to set up a project and the IDE generates a bunch of files which can get in the way if you're just starting out.</p>\n\n<p>If you're using Windows, you'll choose between MingW or Cygwin.  Cygwin is a little work to set up because you have to choose which packages to install, but I don't have experience with MingW.</p>\n"}, {'answer_id': 77519, 'author': 'Cyber Oliveira', 'author_id': 9793, 'author_profile': 'https://Stackoverflow.com/users/9793', 'pm_score': 0, 'selected': False, 'text': '<p>Visual Studio in command line behaves just like GCC. Just open the Visual Studio command line window and:</p>\n\n<p><code><pre>\nc:\\temp> cl /nologo /EHsc /W4 foo.cpp\nc:\\temp> dir /b foo.*\nfoo.cpp  &lt;-- your source file\nfoo.obj  &lt;-- result of compiling the cpp file\nfoo.pdb  &lt;-- debugging symbols (friendly names for debugging)\nfoo.exe  &lt;-- result of linking the obj with libraries\n</pre></code></p>\n'}, {'answer_id': 77556, 'author': 'user14055', 'author_id': 14055, 'author_profile': 'https://Stackoverflow.com/users/14055', 'pm_score': 1, 'selected': False, 'text': "<p>One reason to use g++ or MingW/Cygwin that hasn't been mentioned yet is that starting and IDE will hide some of what is going on.  It will be incredibly useful down the road to understand the differences between compiling and linking for instance. Learn it and understand it from the start, and you won't even know you should be thanking yourself later.</p>\n\n<p>-Max</p>\n"}, {'answer_id': 77724, 'author': 'paercebal', 'author_id': 14089, 'author_profile': 'https://Stackoverflow.com/users/14089', 'pm_score': 0, 'selected': False, 'text': "<p>I agree with Iulian Șerbănoiu: <strong>Code::Blocks is a very good solution</strong>, usable both from Linux (it will use g++/gcc) and from Windows (it will use either the MS compiler or gcc)</p>\n\n<p>Note that you should at least once or twice try to compile using a good old makefile, if only to understand the logic behind headers, sources, inclusion, etc. etc..</p>\n\n<p>As a beginner, don't forget to read books about C++ (Scott Meyers and Herb Sutter books come to the mind, when trying to learns the quirks of the language), and to study open source high profile projects to learn from their code style (they already encountered the problems you will encounter, and probably found viable solutions...).</p>\n"}, {'answer_id': 77862, 'author': 'KeyserSoze', 'author_id': 14116, 'author_profile': 'https://Stackoverflow.com/users/14116', 'pm_score': 1, 'selected': False, 'text': "<p><code>I say GCC for simple things because for a more complicated project the build process isn't so easy</code></p>\n\n<p>True, but I don't think understanding the build process of a large project is orthogonal to understanding the project itself.  My last job I worked at, they had a huge project that needed to build for the target platform (LynxOS) as well as an emulation environment (WinXP).  They chose to throw everything into one .VCP file for on windows, and build it as one big executable.  On target it was about 50 individual processes, so they wrote a makefile that listed all 3000 source files, compiled them all into one big library, and then linked the individual main.cpp's for each executable with the all-in-one library, to make 50 executables (which shared maybe 10% of their code with the other executables).  As a result, no developer had a clue about what code depended on any other code.  As a result, they never bothered trying to define clean interfaces between anything, because everything was easily accessible from <em>everywhere</em>.  A hierarchical build system could have helped enforce some sort of order in an otherwise disorganized source code repository.</p>\n\n<p>If you don't learn how .cpp files produce object code, what a static library is, what a shared library is, etc., when you are learning C/C++, you do still need to learn it at some point to be a competent C/C++ developer.</p>\n"}]
['https://Stackoverflow.com/questions/77126', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/13846/']