Question:
Linux C++: What's a recommended compiler?
kirgy
2009-10-13 10:44:46 UTC
Im running Ubuntu, used to programming for windows, and linux based servers in Visual Basic, C#, client-side javascript, PHP.... Ive recently moved to Linux, and thought C++ would be a good place to start to learn to program for Linux.

I need compiler recomendations pleeease! Thanks babe.
Five answers:
Joseph
2009-10-14 23:34:05 UTC
Since you're used to Visual Basic, C#, I'm guessing you'll want an IDE too.



Since you're running Ubuntu, click Applications, Add/Remove, and then choose any C++ IDE. It will install the GNU g++ package (and others, like build-essential) for you. That way you don't have to meddle with Synaptic or the command line to get the compiler installed. After that point you can still compile from the command line if you prefer.



You'll notice there are many different C++ IDEs to choose from. I like Code::Blocks the best, www.codeblocks.org. It's cross platform, so you can create a project and then work on it back and forth both in Ubuntu and Windows, and Mac OSX too. It's Open Source as well.
2009-10-13 10:56:51 UTC
C++ is great for any platform and every single GNU/LINUX should have GCC with standard C++ support (GCC is the standard compiler for almost any language).



Easier should be learning BASH, tcl/tk or FORTH an scripted language to get more comfortable with the operative system.



If platform specific is your concern you should try JAVA or Lazarus.

And if .NET is your poison you can try MONO.
Nobody
2009-10-13 10:53:33 UTC
Contrary to popular belief, GCC won't compile C++ programs (by default), for that you'd need to install the g++ package. So, I guess to answer your question, GCC/g++.



If you are running ubuntu (or any debian based version of linux), you should be able to install it by typing sudo apt-get install gcc and sudo apt-get install g++ in a terminal session.
tbshmkr
2009-10-13 10:50:48 UTC
GNU GCC

=

http://gcc.gnu.org/

- http://ubuntuforums.org/showthread.php?t=733805

- http://ubuntuforums.org/showthread.php?t=120421

-

Code::Blocks == Open Source C/C++ IDE

http://www.codeblocks.org/downloads/binaries
2016-05-21 07:30:48 UTC
hows about Turbo C++? you can even use Eclipse! Best among all is the proven GNU gcc!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...