Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-16-2004, 04:15 PM   #1
Registered: Jan 2002
Location: Northern Virginia
Distribution: Mandrake 8.1
Posts: 41

Rep: Reputation: 15
C++, G++ errors on compiling 3ddesktop

Hello All,

I posted the other day that I was having problem loading a c compiler. Well I got gcc installed through apt-get and have compiled one program. Therefore I know I have gcc installed. Even if I type whereis gcc I get the correct response. (Thanks to the help of people in my last post.)

My problem is that when I try and run ./configure for 3ddesktop it goes through items like this:

Checking for g++ ... no
checking for c++ ... no
etc until it says error: c++ compiler can not creat executables.

I thought gcc includes g++ and c++. Am I wrong in thinking this?

- Zych
Old 09-16-2004, 04:25 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You can check by typing

g++ -v

It should give you the version and other details. If it doesn't then look for g++ for downloading ( it may simply be split up ).

Last edited by leonscape; 09-16-2004 at 04:29 PM.
Old 09-16-2004, 04:26 PM   #3
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
GCC is technically the GNU Compiler Collection and each compiler is implemented using a separate executable. C is in the gcc executable (which can detect some other languages using extensions and invoke the correct compiler). You will need to install the G++ package (probably gcc-c++ or gcc-g++ - I don't know what the debian package is called).
Old 09-16-2004, 06:14 PM   #4
Registered: Jan 2002
Location: Northern Virginia
Distribution: Mandrake 8.1
Posts: 41

Original Poster
Rep: Reputation: 15
I am actually using RH 9 but I downloaded the apt program for it. Works well. You nailed it on the head. I type "apt-get install gcc-c++" and it installed it. Thank you. It compiled fine, now I gust need to figure out how to use it. lol

- Zych


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
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Errors compiling boombastic Linux - Newbie 7 08-04-2004 03:09 PM
Errors when compiling anything! adizzle Linux - Newbie 4 06-16-2004 05:27 PM
compiling errors degraffenried13 Linux - General 1 04-04-2004 01:54 PM
Errors compiling 2.6.0 plisken Linux - General 3 10-10-2003 05:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:53 PM.

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