Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

C++ Compilers With Linux (gcc?)


  • Please log in to reply
5 replies to this topic

#1 Glunn11

Glunn11

  • Members
  • 262 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Idaho
  • Local time:01:44 AM

Posted 05 July 2007 - 01:38 PM

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

Edited by Glunn11, 05 July 2007 - 11:00 PM.


BC AdBot (Login to Remove)

 


#2 arcman

arcman

  • Members
  • 706 posts
  • OFFLINE
  •  
  • Location:Michigan
  • Local time:03:44 AM

Posted 06 July 2007 - 03:10 AM

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.

Edited by arcman, 06 July 2007 - 03:18 AM.

Posted Image

#3 Glunn11

Glunn11
  • Topic Starter

  • Members
  • 262 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Idaho
  • Local time:01:44 AM

Posted 06 July 2007 - 09:47 AM

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.

Edited by Glunn11, 06 July 2007 - 10:16 AM.


#4 arcman

arcman

  • Members
  • 706 posts
  • OFFLINE
  •  
  • Location:Michigan
  • Local time:03:44 AM

Posted 06 July 2007 - 11:26 AM

I believe it's the chmod command to change the attribute to executable, IE

chmod +x myfile
Posted Image

#5 Glunn11

Glunn11
  • Topic Starter

  • Members
  • 262 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Idaho
  • Local time:01:44 AM

Posted 06 July 2007 - 01:52 PM

Alright, it works! Thanks!
Now I just gotta learn the language x_X.

#6 arcman

arcman

  • Members
  • 706 posts
  • OFFLINE
  •  
  • Location:Michigan
  • Local time:03:44 AM

Posted 06 July 2007 - 03:01 PM

Good luck!
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users