What compiler should I use as a Beginner?

I want to learn C++ and I have Linux (Ubuntu) what Compiler will fit a Beginner like me to start practicing with most of the Tutorials and Sources Codes outhere?

One that be specially made for a Beginner, simple to understand, quite User-Friendly.

Thanks
Please help a noob to learn by it self :)

PSPMAN90
Last edited on
My first compiler was Dev-C++ which I still use over MSVS 2005 on occasions, it is a c++ compiler where MSVS is Visual C++. Another popular one would be Borland C++. Thats all I would recommend venturing into because they are so well known but I'm sure you will get many more recommendations... Have Fun!!
Dev-C++ and MSVS are IDEs --not compilers (but both come with compilers).

Open a command shell and type
gcc --version

If you have the GCC already, you'll get the version, otherwise you'll get a complaint about not finding the program.

To get the GCC and everything you need to compile stuff on Ubuntu, just use
sudo apt-get install build-essential


More information here: https://help.ubuntu.com/community/CompilingSoftware

Eclipse is a highly-recommended IDE around here... there are others:
http://www.cplusplus.com/forum/unices/2732/

Hope this helps.
hartmannr76 :
Thanks, But where I can find DEV C++ for Linux? I went to the Website and all I get is lastes Windows Releases and Sources Codes (that I don't know how to install them on Linux) and there are for Linux but really old Releases. I appreciate the help anyway :D

Duoas:

Thanks! I'm glad somebody around here uses Linux OS :)
Ok I will install that and I tell you if works.
Thanks!
Pleas Help a noob to learn by it self:)
PSPMAN90



Thanks
Please Help a noob to learn by it self :)
PSPMAN90
Last edited on
Hmm... actually, I think Dev-C++ is a Windows only thing...
Visual C++ and Borland C are also Windows software.

You should have GCC (GNU Compiler Collection) installed (if not, it should be on your Ubuntu distribution disk or can be easily downloaded). gcc and g++ are the compilers you will need and are included in GCC

For an IDE try KDevelop, Glade GTK+ GUI or Eclipse. I am not sure what is distributed with Ubuntu since I use Fedora.

For a beginner your best option is to use a good text editor for writing the source code, and run it in the Terminal using gcc or g++ (depending on whether you are writing C or C++ code). Sometimes using a IDE can cause more problems than it solves - I have used a text editor for years and not bothered with an IDE.

Alan
Thanks for everything everyone :D

I've been thinking o installing the Eclipse, but there are like 3 deferents: Java IDE, Eclipse Classic and C Eclipse (C/C++) I think can be the Third.

Also I'm interested on KDE develop, but looks hard to install...

Can I install both? I mean there wouldn't be any problems with that?

Thanks!
Please Help a noob to learn by it self.:)
PSPMAN90
You can use Aptitude to install KDevelop without any problems. It will require the KDE stuff to be installed on your computer, but that shouldn't affect your Gnome desktop. (The only real difference between Ubuntu and Kubuntu is what WM is installed by default. But there is no reason they can't both be installed.)

Hmm... re-reading your Q: you can install as many development environments as you like. They shouldn't interfere with each other. (If one does, get rid of it because it has no business dinking with your system.)

Good luck!

PS. My 2nd hard-drive just died, so I'm Linux-less for the moment. Within the next month I'll swap in another drive and reinstall my Kubuntu... but until then I'm not necessarily the best source of answers... I'll still try though :-)
I'm sorry for what happen to your 2nd HHD :(

Its fine, I get all the help I can get :)

So what Version?

KDevelop 3.5.2-2 (stable snapshots, RPM and deb, built by the kdevelop team) [2008-06-24]

or

KDevelop 3.5.1 (official release) [2008-02-19] (which comes in add/remove application on Ubuntu)

Which one?

Thanks!
PS: I hope you fix your 2nd HHD right away, so you still help me lol , but really I hope so...
PSPMAN90
Whichever one you feel comfortable with. Unless you are developing or testing KDevelop yourself, there's really no reason to get nightly snapshots --especially for minor version updates. Just get the official release.

I'll get it done soon. It is just a matter of pulling out the case and swapping in the new drive. My sister and her children are visiting and I've been playing with them a lot. :-)

It wears me out though...
Ohh Ok I pick then the Official One from (add/remove) ;)

Thanks

Kids are fun, I have a little brother of 6 years and he likes a lot video games. Kids sure give some distraction and fun when u need it...

Well I'm sure that Drive is going to work just fine :)
by the way I have a 2HHD too :D 61GB not too much but is some space to store stuff.

Thanks



Now that you're up and going, good luck. Don't be afraid to ask questions if you're stumped.

61GB not too much but is some space to store stuff.


What do people need 100 million Gorillabytes for anyway!!?? I have about 40gb free and I'm just dandy!
How do I build, run or compile this TUT on KDEVELOP?
[url]http://www.cplusplus.com/doc/tutorial/program_structure.html[/url]

IS A real noob question ...

But doesnt Build...

HELP!

Thanks!
Help a Noob to learn by it self:)
PSPMAN90
Last edited on
Start a new 'console' project, type all the stuff into the text file it gives you, save it to a directory of your choice, and hit 'compile'. It has been a while since I've actually used KDevelop, so you may have to hunt around a little.
Perfect! :-)

(KDevelop looks a lot nicer than it did the last time I used it...)
Topic archived. No new replies allowed.