LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-13-2009, 08:04 PM   #1
judoka
Member
 
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
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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) --> http://gcc.gnu.org/onlinedocs/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" --> http://ubuntuforums.org/showthread.php?t=392330.
 
Old 07-14-2009, 12:30 AM   #3
JosephMu
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.
Quote:
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
judoka
Member
 
Registered: Jul 2009
Distribution: Ubuntu 14.04 LTS, CentOS
Posts: 218

Original Poster
Rep: Reputation: 16
Wink

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.
 
  


Reply

Tags
c++, compiler, programming



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:20 AM.

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