Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: C++ Editor/Compiler  (Read 922 times)

Urist McUristy

  • Bay Watcher
    • View Profile
C++ Editor/Compiler
« on: June 21, 2010, 11:47:48 pm »

I'm trying to learn how to code in C++, but I cannot find a good Editor/Compiler thats free.
I noticed some of you guys are good with C++ by looking on the forums so I figured I'd ask here;
what is a good, simple, free C++ Editor/Compiler for beginners in coding?
Logged

Chutney

  • Bay Watcher
    • View Profile
Re: C++ Editor/Compiler
« Reply #1 on: June 22, 2010, 12:03:16 am »

I personally code in notepad  8)

Bloodshed ( http://en.wikipedia.org/wiki/Dev-C%2B%2B ) works pretty well. Also, I think Microsoft Visual Studio Express Edition is free.
Logged

alway

  • Bay Watcher
  • 🏳️‍⚧️
    • View Profile
Re: C++ Editor/Compiler
« Reply #2 on: June 22, 2010, 12:09:27 am »

Dev Bloodshed C++ is what I used. Its negatives include needing some slightly different syntaxes for some things IIRC, as well as being hard to transition out of w/o actual programming courses due to it being an inferior compiler for most purposes. It has neither the libraries for most stuff nor have I ever managed to get the projects in it to work properly, introducing of files in ways which makes transferring to a grown-up compiler difficult. If you ever plan on doing any advanced stuff or graduating on to graphics, I would advise against using this one. I wasted countless hours before figuring out the compiler was hopelessly out of date and unable to program DirectX with it. Oh, and the compiler errors are quite cryptic IIRC. The only advantage it has is a much more simple interface and such compared to most others. It is pretty handy when creating small .exe programs which run from the command prompt, due to having less options to monkey with than others, but for most purposes is useless. It should probably be avoided in most cases.

Microsoft Visual C++ Express Edition is free and can work with any modern C++ stuff you want to use; I'm currently using it along with the DirectX SDK to create 3d stuff. So its got the free and good qualifiers. However, I had a hard time figuring out how to use it early on due to being overwhelmingly option-filled. Its got a robust project system, but with that comes the need to understand what you are doing to avoid unexpected things from happening. Once you figure it out, it is pretty good, but that may take quite a bit longer than more spartan compilers. Simple and good are more or less mutually exclusive in my experience. Another advantage is that it is pretty much just a stripped down version of MS Visual Studio, as are the other Visual Express Editions. As such, if you decide to switch over to C#, Basic, ect, the interface and methods of doing things are pretty much the same.

Also, I suggest posting your question/s here: http://www.bay12forums.com/smf/index.php?topic=57518.0
Its essentially an ongoing support thread for programmers, and is frequented by those who know their stuff, gaurrenteeing answers which will likely be more accurate than the ones I give.
« Last Edit: June 22, 2010, 12:13:44 am by alway »
Logged

Urist McUristy

  • Bay Watcher
    • View Profile
Re: C++ Editor/Compiler
« Reply #3 on: June 22, 2010, 12:15:09 am »

I'm Downloading the Microsoft Visual Express Edition right now, thanks!
Logged

Muz

  • Bay Watcher
    • View Profile
Re: C++ Editor/Compiler
« Reply #4 on: June 22, 2010, 01:12:11 am »

I personally code in Notepad++  8)

Fixed that for you :P

Seriously, though. I know lots of professional coders who write C code in Notepad and Notepad++, then compile with cygwin. Some of my friends use VI. I've used Notepad, Bloodshed, Visual C++. I'm happiest using Eclipse to do it, which is free and excellent with code browsing. Could write a ten thousand line operating system comfortably in Eclipse because of how it makes things easy.

But if you want something easy and straightforward, Bloodshed is fine. Visual C++ and Eclipse are nice for very big code.
Logged
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: C++ Editor/Compiler
« Reply #5 on: June 22, 2010, 08:08:02 am »

C in notepad, compile with a batch file ("gcc *.c 2> err.log" is a common one) and MinGW.

I do not reccomend it for beginners, because an IDE would be far better than notepad.
Logged
Eh?
Eh!

Virex

  • Bay Watcher
  • Subjects interest attracted. Annalyses pending...
    • View Profile
Re: C++ Editor/Compiler
« Reply #6 on: June 22, 2010, 09:50:29 am »

I've also heard good things about code::blocks, don't know if anyone has got experience with it?
Logged