Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2009, 08:04 PM   #1
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Rep: Reputation: 16
how to use ubuntu C++ compiler

I'm new to Ubuntu and just found out how to install build-essentials for programming in C++, but when I click on the gcc file in user/bin it does absolutely nothing. I read on one of the posts that it doesn't come with wondows, like Visual C++ from Microsoft, where you can enter your code directly. Can someone help me with some instructions on how to use Unubtu's gcc compiler from where I enter the code to how I can view the output. I'm sorry if this is a silly question, but I'm an absolute ammature when it comes to Linux even though I try to research the subject whenever I can. Your help is greatly appreciated.
Old 07-13-2009, 08:21 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
A good place to start is the documentation for the GNU Compiler Collection (GCC) which provides the C++ compiler (g++) as well as the C compiler (gcc) --> Here is a thread in the Ubuntu forums discussing the use of g++ which is the second link that comes up with the not so great search terms "g++ howto" -->
Old 07-14-2009, 12:30 AM   #3
LQ Newbie
Registered: Dec 2008
Distribution: Ubuntu 9.04
Posts: 15

Rep: Reputation: 1
hi,judoka , I'm a newbie too
You mentioned VC, I think you are looking for some kinds of IDE on Linux
if you are,
wii, there are many many kinds of IDEs under Linux,

BUT, Trust me IDE will definitely ruin your Programming skills along with your Debugging skills
I see you mentioned "click" too. lol
try to use console, start the console start your Linux life.
I read on one of the posts that it doesn't come with wondows
many creat applications come with console rather than windows.
weibullguy have gave you many good links, try them~
Old 07-14-2009, 11:55 AM   #4
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Original Poster
Rep: Reputation: 16

Thanks for such a swift response, I found the links very helpful. They were exactly what I needed. And yeah, I guess I should reprogram myself to use the terminal more to get the most out of Linux.


c++, compiler, programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Compiler in Ubuntu? MexDeath Programming 11 11-30-2008 03:01 PM
C/C++ compiler for Ubuntu 5.04 crash_override_me Ubuntu 8 11-17-2008 04:35 AM
Ubuntu 7.10 how do you install GCC v3.4.6 compiler and use it cctv Linux - Newbie 5 03-25-2008 07:57 PM
C or gcc compiler in Ubuntu alar Ubuntu 3 09-20-2006 11:08 PM
can't find c compiler in ubuntu fssengg Ubuntu 7 12-22-2005 05:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration