LinuxQuestions.org
Help answer threads with 0 replies.
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-17-2007, 02:14 PM   #1
Kintail
LQ Newbie
 
Registered: Nov 2006
Location: Scotland
Distribution: SUSE 10.1
Posts: 16

Rep: Reputation: 0
Lightbulb I cannot C(++)


I know where C (the language) resides in Linux, as in 'gcc', but where does g++ fit? It should be somewhere as it is a superset of gcc. My distro is SuSE 10.1
 
Old 06-17-2007, 02:59 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What exactly are you asking?
 
Old 06-17-2007, 04:20 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
gcc (The Gnu Compiler Collection) included support for c++, ne'est-ce pas?

You can maybe check in you package manager to be sure all required libraries are installed.
 
Old 06-19-2007, 02:15 PM   #4
Kintail
LQ Newbie
 
Registered: Nov 2006
Location: Scotland
Distribution: SUSE 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for your responses. I favour the package manager suggestion by pixellany, although I thought I had checked that. Sorry if I confused Nylex. What I wrote in, terse mode, was that I can compile and run C code under 'gcc', but not C++ code under g++ because it isn't there! Nor could I find any part of it. Obviously it should be there!! Anyway, I will come back when I make further progress - thanks again.
 
Old 06-19-2007, 02:17 PM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Oh! Ok, now I understand . SuSE probably has separate packages for gcc and g++, the latter is usually named something like "gcc-g++" or "gcc-c++", so yeah, check the package manager as pixellany advises.
 
Old 06-23-2007, 04:40 AM   #6
Kintail
LQ Newbie
 
Registered: Nov 2006
Location: Scotland
Distribution: SUSE 10.1
Posts: 16

Original Poster
Rep: Reputation: 0
Lightbulb C++

When I got on to package mamager I found I had checked 'gcc' only, thinking that C++ would be included. It isn't, of course, as C++ is catered for by a front-end to 'gcc'. Anyway, it all seems to work now, so I can concentrate on getting applets to work (Java of course). Thanks again.
 
  


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



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

All times are GMT -5. The time now is 01:08 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