• 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

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

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.

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

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++?

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
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

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

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

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

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

    • What I like about Paint is using it almost exclusively for cropping and resizing images I get elsewhere--it's quick, easy and cheap... I keep it glued to my taskbar, in fact. Also, the clipping tool comes in handy, as well (hit print scrn on the keyboard and it activates immediately.)
    • I still remember it fondly today. It was so cool to work in 64-color Half Bright mode and 4.096-color HAM mode (interlaced) when x86 was still in 4-color CGA or 16-color EGA low res. C= never realized what it had until it was far too late--the failure of C= was the failure of its top management. The C= Amiga was 20 years ahead of its time, I always thought. It didn't hurt that in only 512k of chip memory, the Amiga could preemptively multitask when Apple was still doing gray scale graphics on tiny screens and along with everyone else was doing cooperative multitasking (running more than one app at a time in resident memory, but you could only run one of them at a time--had to manually switch between them.) I had a ball with AREXX scripting running between programs that had AREXX ports so that when you sent other applications data and instructions, those running applications could process the same in real time to output! Memories...
    • I'm not sure about that, but it at least "does" a version of 7.1 that this brand new card doesn't....
    • Floorp 12.15.2 by Razvan Serea Floorp is a cutting-edge web browser that combines the trusted foundation of Mozilla's Firefox with a unique Japanese perspective, offering users an exceptional online experience. This open-source browser prioritizes privacy, customization, and security. Floorp is transparent, with no user tracking or data sharing, and it's completely open source. With a strict no-tracking policy and full transparency, your personal information remains private. As an open-source project, Floorp not only shares its source code but also its build environment, inviting users to contribute and build their unique versions. The regular updates, based on Firefox ESR, ensure that you always have the latest features and security enhancements. Floorp key features: Strong Tracking Protection: Floorp offers robust tracking protection, safeguarding users from malicious tracking and fingerprinting on the web. Flexible Layout: Customize Floorp's layout to your heart's content, including moving the tab bar, hiding the title bar, and more for a personalized browsing experience. Switchable Design: Choose from five distinct designs for the Floorp interface, and even switch between OS-specific designs for a unique look Regular Updates: Based on Firefox ESR, Floorp receives updates every four weeks, ensuring up-to-date security even before Firefox's releases. No User Tracking: Floorp prioritizes user privacy by abstaining from collecting personal information, tracking users, or selling user data, with no affiliations with advertising companies. Completely Open Source: The full source code for Floorp is open to the public, allowing transparency and enabling anyone to explore and build their own version. Dual Sidebar: Floorp features a versatile built-in sidebar for webpanels and browsing tools, making it perfect for multitasking and quick access to bookmarks, history, and websites. Flexible Toolbar & Tab Bar: Customize your browser with Tree Style Tabs, vertical tabs, and bookmark bar modifications, catering to both beginners and experts in customization. User-Centric Web Experience: Floorp prioritizes user privacy and collaboratively blocks harmful trackers. Floorp 12.15.2 changelog: fix: reset tab drag state on dragend to prevent position offset (#2488) by @Ryosuke-Asano in #2497 fix(workspaces): hide split view wrapper when all tabs are hidden by @Ryosuke-Asano in #2495 fix(split-view): prevent stuck pointer-events:none after drag on web content by @Ryosuke-Asano in #2492 feat(design): add Gecko 152 CSS variable aliases and Lepton compatibility layer by @Ryosuke-Asano in #2494 fix(workspaces): exitOnLastTabClose no longer quits Floorp when closing the last tab by @Ryosuke-Asano in #2498 Download: Floorp 64-bit | 95.0 MB (Open Source) Links: Floorp Website | Github Website | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • I can barely recall getting web results from a file search... I must've turned it off long ago. 26H2 is Insider's Preview build 26300.8697, which I am running, atm. It is not available for people running the standard commercial builds of Windows--only for the beta test Insider's group. But anyway, as mentioned in the thread, this feature has been around for a long time...
  • Recent Achievements

    • Dedicated
      Almohandis earned a badge
      Dedicated
    • Dedicated
      JuvenileDelinquent earned a badge
      Dedicated
    • First Post
      DrWankel earned a badge
      First Post
    • Reacting Well
      DrWankel earned a badge
      Reacting Well
    • Week One Done
      Supreme Spray LV earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      507
    2. 2
      +Edouard
      185
    3. 3
      PsYcHoKiLLa
      84
    4. 4
      Michael Scrip
      78
    5. 5
      Steven P.
      76
  • Tell a friend

    Love Neowin? Tell a friend!