Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the best, standard (and hopefully free) C++ compiler? [closed]

Saludos a todos en stackoverflow.com!!

So... I'm a C++ newbie currently taking the subject of Data Structures, and I want to consult something with you guys:

Since I started studying Systems Engineering, I've been using the last version of Dev-C++ for all my programming projects. It has done it's job well so far, but it has a FATAL flaw... trying to debug your code in it it's just... awfully painful!! Everytime you activate the debug mode you have to cross your fingers and hope it doesn't crash in your face just before the variable you are watching even changes.

Then, I though about using Visual-C++ from Microsoft, as it is free too; however, I asked my teacher and told me not to use it in the course, as it is not standard (compiled programs in it will only work for Windows); we are required to make code that can be compiled both in a Windows and Linux environment, and once compiled in any, being able to use the application on both environments.

So people, I want you to please give me advice: Which C++ compiling software out there has a strong and/or stable debugging mode, implements the standard compiler (is it called g++, by the way??), and it's hopefully free???

Thanks for your attention. Gracias y hasta luego ^_^ (BTW, happy first post!!! ^o^)

like image 603
NeoGlitch Avatar asked Mar 07 '09 19:03

NeoGlitch


People also ask

Which C compiler should I use?

If you want to run C or C++ programs in your Windows operating system, then you need to have the right compilers. The MinGW compiler is a well known and widely used software for installing GCC and G++ compilers for the C and C++ programming languages.

Which is the fastest C compiler?

The Zapcc is the fastest compiler in our compile test. LLVM and Clang have relatively good documentation, although it can be somewhat unclear as to which version of the product the documentation refers to. The Zapcc compiler relies entirely on the standard LLVM documentation.


1 Answers

There is an implementation of g++ and GDB ( the Gnu Debugger ) for windows called Mingw that works very well. Though since I'm guessing you're also looking for a graphical IDE / debugger, I'd point you at Eclipse. The C Development Tools for eclipse include an excellent interface to the Mingw build tools and GDB. Also, on your comment about a compiled program being used on both Windows and *nix, this is not possible as far as I know.

like image 93
rtward Avatar answered Sep 27 '22 17:09

rtward