Recommended Compiler for Windows

Hello,

This is my first post and I just found this website today.

I have never programmed (except one proprietary language), and would really like to start off doing things the right way.

My plan is to take the site's tutorial from start to finish, and then learn my way from there.

I have a question.

To begin learning C++ -- per the site's tutorial -- what should I use to place my code in? I guess this is called the compiler.

I read the thread entitled, Console Closing Down:

( http://www.cplusplus.com/forum/beginner/1988/ )

...and it almost fried my brain. :-)

It seems using the cmd prompt in Windows is not the best way to do this. I just want to build simple programs and be able to see them working in a Windows environment, since I am running XP on my pc. This way I can follow the tutorial every step of the way and watch my lines of code do what they are supposed to do.

If this question seems absolutely baby-ish, I apologize. I simply want to do things the right way from the outstart. (I did do a site search of the word "compiler" before asking this question.)

Thank you.



















closed account (3hM2Nwbp)
First off, let me say that I am absolutely biased when it comes to compilers :)

I'll assume that you're using a windows system for development.

My first recommendation would be Microsoft's compiler that comes bundled with Visual Studio 2010 Express. After installing Visual Studio, you should be able to jump right in and start writing C++ programs without any configuration on your end.

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

Another option would be to use a port of the GNU GCC compiler for Windows (mingw), although there may be more configuration needed before using it. An IDE that will work with it (assuming there aren't any configuration issues), is code::blocks.

mingw installer
http://tdm-gcc.tdragon.net/download

code::blocks ide installer
http://www.codeblocks.org/downloads/26

A third option would be to install mingw and use it via command-line (which quickly gets confusing as your projects grow large, or use cave-man tools make-files.
Last edited on
In addition to VC++ Express and Code::Blocks, there is CodeLite
http://sourceforge.net/projects/codelite/files/Releases/codelite-3.5/codelite-3.5.5377-mingw4.6.1.exe/download

Whether you want to use and IDE or not, and which IDE to use, is a very personal decision. Perhaps you should try all these out, and then settle on the one that is best suited for you.


The only problem with Visual Studio (at least the 2008 version) is that it only runs on Windows 7. You can't run it on your xp. I used to use Bloodshed Dev C++, but that has a few limitations and I don't really like the way Dev sets the code blocks, but I'm sure that you wouldn't have a problem with that as a beginner.
http://www.bloodshed.net/devcpp.html

Another option to try, though I admit I haven't tried it yet, would be eclipse's C/C++ compiler. I've used their Java IDE and I like that setup, so their C/C++ compiler should be ok. If you do decide to try this, then you'd have to tell me how you like it because I'm looking for a compiler to replace my Dev compiler for programming on other computers.
http://www.eclipse.org/downloads/packages/eclipse-ide-cc-developers-includes-incubating-components/indigosr2
GRex2595 wrote:
The only problem with Visual Studio (at least the 2008 version) is that it only runs on Windows 7. You can't run it on your xp.
Unless Microsoft changed something recently, thats not true. I have run VS2008 on XP in fact a year and a half ago my college only had XP and all lab systems had VS2008, I cant speak for VS2010 though.
Actually, now that I think about it, I think that it was 2010 only that only runs on 7. It's been a while since I heard that and had forgotten.
The system requirements page for VS2010 says it will install on XP SP3 http://www.microsoft.com/visualstudio/en-us/products/2010-editions/ultimate/system-requirements
In that case, I was given incorrect information. I never really cared because I have Windows 7 and don't need to know if it works on my computer or not anyways.
Love code::blocks, id recommend that.
Topic archived. No new replies allowed.