LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-18-2002, 05:31 AM   #1
islandkid
Member
 
Registered: Mar 2002
Location: Victoria, BC, Canada
Distribution: None (www.linuxfromscratch.org)
Posts: 103

Rep: Reputation: 15
where is g++


why isn't there 'g++' with any of the new versions of gcc? I can't configure kdegraphics because the configuration script is looking for g++ and can't find it.

How do you compile c++ scripts with gcc? If it is by using gcc, I've tried makeing a symbolic link called g++ pointing to gcc. The configuration script still can't find a c++ compiler and terminates.


configure:2641: checking for g++
configure:2667: result: no
configure:2641: checking for c++
configure:2667: result: no
configure:2641: checking for gpp
configure:2667: result: no
configure:2641: checking for aCC
configure:2667: result: no
configure:2641: checking for CC
configure:2667: result: no
configure:2641: checking for cxx
configure:2667: result: no
configure:2641: checking for cc++
configure:2667: result: no
configure:2641: checking for cl
configure:2667: result: no
configure:2641: checking for FCC
configure:2667: result: no
configure:2641: checking for KCC
configure:2667: result: no
configure:2641: checking for RCC
configure:2667: result: no
configure:2641: checking for xlC_r
configure:2667: result: no
configure:2641: checking for xlC
configure:2667: result: no

all the lines in the configuration script that call g++ give:
g++: command not found
 
Old 03-18-2002, 06:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well g++ is NOT gcc, why would it be called something else if it was the same program? gcc is a c compiler, g++ is a c++ compiler, which comes in the gcc-c++ package, which you could have easily found at rpmfind.net
 
Old 03-18-2002, 03:30 PM   #3
islandkid
Member
 
Registered: Mar 2002
Location: Victoria, BC, Canada
Distribution: None (www.linuxfromscratch.org)
Posts: 103

Original Poster
Rep: Reputation: 15
I have gcc 3.1 installed. On the gcc site, they claim it compiles c, c++, java and almost everything else.
 
Old 03-18-2002, 04:00 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
In my system g++ is just a symlink to gcc (well, there are symlinks to symlinks etc, but from g++ it gets to colorgcc, from gcc it gets to colorgcc).
 
  


Reply



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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

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