• 0

C++ Compiler of choice


Question

Hey all, lately I've been wanting to learn a programming language and decided I'd like to learn C++, I've had suggestions about using Dev-C++ but I've also heard some pretty dodgy reviews due to it not being updated since 2005 and doesn't compile exes properly in some cases. I have Visual C++ 6 already installed and was wondering if this would be a better option. Also please state any better choices and why you think they're better; any tips to get started would also be apprectiated.

Thank you

-Alex

Link to comment
https://www.neowin.net/forum/topic/992110-c-compiler-of-choice/
Share on other sites

Recommended Posts

  • 0

How did you even manage to get VC6?!

Just go and download visual studio 2010 express.

Better because:

- Its the current most up-to-date compiler Microsoft offer

- Fewer compiler bugs than in VC6

- Offers some C++11 features

- The IDE you get with it is very good

  • Like 2
  • 0

Hi Alex,

I Recommend the GNU Compiler Collection (GCC); it's free, open source, standards compliant, and is regularly updated with the latest bug fixes/features. Not only that, but if you decide to program on OSX (Mac), or GNU/Linux, then you can use the same tool because it's cross platform. Once you get a taste for GCC, I also recommend checking out the GNU Autotools, which is a very powerful code/package build system, and once again is cross platform.

http://gcc.gnu.org/

http://www.gnu.org/software/hello/manual/automake/Autotools-Introduction.html#Autotools-Introduction

Most free IDE's/Editor's, both terminal and GUI, support integration with the GNU GCC and Autotools. Good luck with your programming adventure :D

  • 0

For IDE's, I'd probably recommend Code::Blocks, or my personal favourite Eclipse although it does more than you will probably need for learning C++. Don't go with Dev-C++ as per this thread: LINK.

If you're strictly looking for a compiler, I personally go for GNU Compiler Collection (which includes a compiler for C and C++) like Flawed said. Free and open. Can't go wrong :).

Don't run with VB6/VC++6, they're so old and obsolete that you might as well not bother learning programming. VB in 2011 is barely even related to VB6.

  • 0
  On 22/04/2011 at 19:45, Lant said:

How did you even manage to get VC6?!

Just go and download visual studio 2010 express.

Better because:

- Its the current most up-to-date compiler Microsoft offer

- Fewer compiler bugs than in VC6

- Offers some C++11 features

- The IDE you get with it is very good

This and it's also free.

If you are a student you can also get VS2010 Pro from Dreamspark for free. Now you most probably wouldn't need all the stuff the Pro version offers (express is good enough if you're starting out) but if you're getting for free, why not.

  • 0
  On 22/04/2011 at 20:04, Majesticmerc said:

If you're strictly looking for a compiler, I personally go for GNU Compiler Collection (which includes a compiler for C and C++) like Flawed said. Free and open. Can't go wrong :).

This implies there are other things for programming, correct? do you mind saying what else would actually be needed? I'm pretty new to the whole programming scene.

  On 22/04/2011 at 20:09, /- Razorfold said:

If you are a student you can also get VS2010 Pro from Dreamspark for free. Now you most probably wouldn't need all the stuff the Pro version offers (express is good enough if you're starting out) but if you're getting for free, why not.

I'm a student, but in High school, I doubt the rules would apply to myself not being a College or uni student, do they?

  • 0
  On 22/04/2011 at 20:35, Gromit said:

This implies there are other things for programming, correct? do you mind saying what else would actually be needed? I'm pretty new to the whole programming scene.

Well you could use a normal texteditor and compile via commandline with any compiler. Honestly I don't recommend that! Whilst a IDE may be a bit heavy if you start learning programming, it's really useful when you have many files - something that without a doubt happens pretty soon with C++?

  On 22/04/2011 at 20:35, Gromit said:

I'm a student, but in High school, I doubt the rules would apply to myself not being a College or uni student, do they?

The Express Editions are free for anyone! You just have to register (free!) to use them for more than 30 days.

Personally I'd go with Visual C++ 2010 Express?

  • 0
  On 22/04/2011 at 20:35, Gromit said:
This implies there are other things for programming, correct? do you mind saying what else would actually be needed? I'm pretty new to the whole programming scene.
You need:

- an editor, to write the code. A good editor highlights the language syntax, provides suggestions as you type, shows you your errors in real-time, allows to easily navigate, provides auto-formatting, etc.

- a compiler, to convert the code into an executable

- a debugger, to analyse what your program is doing as it executes

- some method to manage all the different files of your projects and how they are built

A good IDE (integrated development environment) provides all of that seamlessly. Visual Studio and Eclipse CDT are examples of C++ IDEs. MSVC and GCC are examples of compilers (they are used by the respective aforementioned IDEs).

  • 0
  On 22/04/2011 at 20:42, MFH said:

Well you could use a normal texteditor and compile via commandline with any compiler. Honestly I don't recommend that! Whilst a IDE may be a bit heavy if you start learning programming, it's really useful when you have many files - something that without a doubt happens pretty soon with C++?

The Express Editions are free for anyone! You just have to register (free!) to use them for more than 30 days.

Personally I'd go with Visual C++ 2010 Express?

I have Notepad ++ installed if I ever needed to do that aspect so that's covered.

And I have visual C++ 2010 express installed (just thought I'd let you know you don't need to register :) ).

edit: Also have Eclipse installed now, although from what I've read I doubt I'll need that too soon but still :)

  • 0
  On 22/04/2011 at 20:44, Dr_Asik said:

You need:

- an editor, to write the code. A good editor highlights the language syntax, provides suggestions as you type, shows you your errors in real-time, allows to easily navigate, provides auto-formatting, etc.

- a compiler, to convert the code into an executable

- a debugger, to analyse what your program is doing as it executes

- some method to manage all the different files of your projects and how they are built

A good IDE (integrated development environment) provides all of that seamlessly. Visual Studio and Eclipse CDT are examples of C++ IDEs. MSVC and GCC are examples of compilers (they are used by the respective aforementioned IDEs).

Ahh so an IDE is pretty much an all-in-one software covering all the basis for programming, where as compilers such as Code::Blocks is just a compiler to create the executable files but doesn't show you errors etc.

  • 0
  On 22/04/2011 at 20:49, Gromit said:

Ahh so an IDE is pretty much an all-in-one software covering all the basis for programming, where as compilers such as Code::Blocks is just a compiler to create the executable files but doesn't show you errors etc.

It's basically like this:

Compiler = parses all your code and transforms it to basic computer instructions

Editor = Texteditor with - hopefully - syntax highlighting and member lookup (you can't remember all the functions that are offered in the language/library)

Debugger = allows you to follow the path of execution of your program while it's running

IDE = a program that offers - at least - these three functionalities with a consistent UI

  • 0
  On 22/04/2011 at 20:54, MFH said:

It's basically like this:

Compiler = parses all your code and transforms it to basic computer instructions

Editor = Texteditor with - hopefully - syntax highlighting and member lookup (you can't remember all the functions that are offered in the language/library)

Debugger = allows you to follow the path of execution of your program while it's running

IDE = a program that offers - at least - these three functionalities with a consistent UI

Ah, thank you very much for the explanation :D

  • 0

From what I understand you never programmed before. I personally had a book when I learned C++ - was my first language too :).

Take a look at these tutorials: http://www.cplusplus.com/doc/tutorial/ it seems to cover at least the basics of C++ (haven't read them myself)

The wikibook seems to cover much aspects aswell http://en.wikibooks.org/wiki/C%2B%2B_Programming

  • 0

If you're just working with Windows, Visual Studio hands down. Everything included, easy to use, tons of quality help. Easy transition if you go pro or higher for some of the excellent third party tools available (CodeRush/Refactor Pro is awesome), plus integration of all the various languages/platforms in one versus a bunch of different Express installs.

Avoid C++ Builder like the plague.

Cross platform, GCC is an obvious choice for the compiler, personally a fan of Code::Blocks for the IDE, although Eclipse, Anjunta and KDevelop aren't too shabby either.. kind of a "try it out and see for yourself" sort of thing.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • no way that was one of the best microsoft app, sigh its bizarre how microsoft making the worse decision on everything.... so i guess time to ask a good replacement of that
    • "Let's take one of our most popular and highly rated apps and kill it to force people into the Copilot app no one wants and with fewer features! That's the ticket!" Idiots. I used Lens all the time and it works great. Don't care if the other apps are subscription based, I'm not installing Copilot.
    • Weekly reasoning requests limit went down from 2900 ( 100 o3, 2100 o4-mini, 700 o4-mini-high) to just 200 GPT5 thinking requests per week. Absolute scam altman move
    • GPT-5 upgrade sparks backlash from ChatGPT Plus users over new usage limits by Pradeep Viswanathan OpenAI yesterday unveiled its highly anticipated GPT-5 model, featuring major advancements in reasoning, coding, and tool-calling capabilities. In a departure from previous launches, the company announced that this cutting-edge model will be accessible to all ChatGPT users, including those on the free tier. Depending on the ChatGPT subscription tier, GPT-5’s intelligence and usage limits will vary. Free-tier users will receive a limited number of high-intelligence responses, while Pro-tier users will have unlimited access. Here are the exact GPT-5 usage limits on ChatGPT: ChatGPT Free tier accounts can send up to 10 messages every 5 hours. After reaching this limit, ChatGPT will automatically use the GPT-5 mini until the limit resets. Free tier users also have access to just one GPT-5 Thinking message per day. ChatGPT Plus plans can send up to 80 messages every 3 hours. After reaching this limit, ChatGPT will switch to GPT-5 mini until the limit resets. ChatGPT Plus or Team users can manually select the GPT-5-Thinking model from the model picker with a usage limit of up to 200 messages per week. ChatGPT Pro plan offers unlimited access to GPT-5 models. If ChatGPT automatically switches from GPT-5 to GPT-5-Thinking, it will not count toward the above limits. While this may sound good, ChatGPT Plus subscribers are unhappy with the change. Previously, they had unlimited access to OpenAI’s o3 and o4-mini Thinking models, but they are now limited to just 200 messages per week. The only workaround for ChatGPT Plus users, for now, is to explicitly instruct the model to think longer through their prompts. It’s unclear how OpenAI will respond to this feedback from its core subscribers. Any future changes to the usage limits for Plus users could play a key role in keeping subscribers satisfied while balancing global demand for the GPT-5 model. Image Credit: Depositphotos.com
    • Guess I'll be saving the APK for future use, screw that data-harvesting copilot crap...
  • Recent Achievements

    • One Month Later
      Jaclidio hoy earned a badge
      One Month Later
    • Week One Done
      Yawdee earned a badge
      Week One Done
    • Week One Done
      eugwalker earned a badge
      Week One Done
    • First Post
      Ben Gross earned a badge
      First Post
    • One Month Later
      chiptuning earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      651
    2. 2
      +FloatingFatMan
      182
    3. 3
      ATLien_0
      147
    4. 4
      Xenon
      133
    5. 5
      wakjak
      106
  • Tell a friend

    Love Neowin? Tell a friend!