LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-03-2006, 06:24 PM   #1
viper4
LQ Newbie
 
Registered: Dec 2005
Posts: 14

Rep: Reputation: 0
gcc problem on suse 10


I isntalled gcc with the command

yast -i gcc

and gcc was installed. However, when I try running the g++ command for C++ compiling, i get a no command found error. Why is gcc, as work but not g++? aren't they all part of the same GNU package?
 
Old 01-03-2006, 06:38 PM   #2
UK MAdMaN
Member
 
Registered: Jul 2004
Location: Manchester, England
Distribution: Gentoo
Posts: 211

Rep: Reputation: 30
Not sure about other distros, but in SUSE they're seperate. You'll need to install gcc-c++.
 
Old 01-03-2006, 09:30 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
My experience with SuSE and the Gnu compiler is: each capability is a *module* of the compiler. If you want gcc: install gcc. If you want g++; install g++. Same for Fortran, etc.

The only way to get all the capabilites of the compiler is to install from source (to get most of the capabilities), then add compiler modules which are not part of the basic tar install.
 
Old 01-04-2006, 01:54 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by UK MAdMaN
Not sure about other distros, but in SUSE they're seperate. You'll need to install gcc-c++.
Its the same on other distros, installing gcc does not necessarily install g++.
 
  


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
Problem with new installation of SUSE, gcc & make not found abefroman SUSE / openSUSE 5 01-18-2008 01:36 PM
Suse 9.3 Pro gcc install problem Detriamus SUSE / openSUSE 2 10-09-2005 07:11 PM
Suse 9.3 gcc-g++ Installation Problem limneos Linux - Newbie 4 09-30-2005 07:27 PM
GCC compiling problem C, SuSE 9.1 Bill Chandler Linux - Software 3 11-24-2004 02:30 AM
GCC 3.4.2 on SuSE 9.1 escordeiro Linux - Newbie 10 11-12-2004 05:16 PM


All times are GMT -5. The time now is 12:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration