Help - Search - Members - Calendar
Full Version: C++ Compilers With Linux (gcc?)
BleepingComputer.com > Software > Programming
   
Glunn11
Howdy yet again oh trustworthy community!
I have set up my system to dual-boot with Windows Vista and Ubuntu, mainly for the purposes of learning C++ (Ubuntu is extremely cool, too :D)
However, I'm a total Linux newbie, and this GCC thing scares me with strange vocabulary like "mount" and "bootstrap".
Apparently Ubuntu comes with GCC already, but I don't have g++. How do I get it? I tried searching the boards, but g++ is less than 4 characters. Go figure.
Thanks!
-Glen
arcman
I'm not a programmer but I can tell you where to start...
Open up the Applications from the main menu and go to Add / Remove and open up the category in Programming. There's a good sized list of IDE's in there.
If you want just the g++ package itself you can install it from System > Administration > Synamptic Package Manager and mark it for install. From the command line,
sudo apt-get install g++
should work also.
Glunn11
YAAAY! I didn't have to build it from scratch :D Thanks so much!
One quick question: after compiling a program, how do I run the executable? When I run it by double-clicking, nothing happens.
arcman
I believe it's the chmod command to change the attribute to executable, IE

chmod +x myfile
Glunn11
Alright, it works! Thanks!
Now I just gotta learn the language x_X.
arcman
Good luck!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.