LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2008, 05:53 AM   #1
ankurgarg
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Gcc Problem: I Cannot Compile Simple C++ Programs


Hi,

I cannot compile simple c++ program using command cc/ gcc.

I will like to know that can I uninstall gcc and reinstall it or what????

Please help me out.

Ankur
 
Old 06-13-2008, 06:18 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Use g++ to compile C++ programs.
Make sure you also have the bin-utils package installed.
 
Old 06-13-2008, 06:22 AM   #3
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Did you try g++ command? What distribution are you using?

In Ubuntu,
sudo apt-get install build-essentials
 
  


Reply


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
RTAI - Can't compile simple.c with gcc (hello world program) mario-vallejo Linux - General 1 04-23-2008 09:13 AM
can't compile simple C++ programs on Suse 9.1 after installing gcc cyclebain Linux - Software 9 07-04-2007 09:04 AM
Installation isn't able to compile simple C++ programs Adrian Baker Linux - Software 1 10-17-2006 06:01 PM
I've installed the GCC packages but C programs still won't compile! Cold Coffee Linux - Newbie 10 07-14-2006 04:31 AM
how to compile c++ programs with gcc nimra Programming 7 05-17-2004 08:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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