LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-17-2004, 12:19 AM   #1
Damitha
LQ Newbie
 
Registered: Dec 2004
Distribution: Mandrake 10.1
Posts: 7

Rep: Reputation: 0
Compiling using gcc


Hi all

This is what I get when I try to compile a c++ program

[dam@localhost dam]$ gcc-$(gcc3.4-version) hello.cpp -oh
gcc-3.4.1: installation problem, cannot exec `cc1plus': No such file or directory

[dam@localhost dam]$ g++ hello.cpp -ohello
bash: g++: command not found

And when I installed the 3.4.1 version I got this error

Some package requested cannot be installed:gcc-c++-3.4.3-1mdk.i586 (due to unsatisfied libstdc++6[== 3.4.3]) do you agree ?

Well I ignored it and installed.......

What am I suuppose to do about this I've tried so many things and searced the ner like nothing And "http://www.linuxfromscratch.org/blfs/view/cvs/general/gcc.html" said I'll be needing some one Gig or so

pls some one help me.
 
Old 12-17-2004, 05:11 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Re: Compiling using gcc

Quote:
Originally posted by Damitha
[dam@localhost dam]$ gcc-$(gcc3.4-version) hello.cpp -oh
gcc-3.4.1: installation problem, cannot exec `cc1plus': No such file or directory

[dam@localhost dam]$ g++ hello.cpp -ohello
bash: g++: command not found

And when I installed the 3.4.1 version I got this error

Some package requested cannot be installed:gcc-c++-3.4.3-1mdk.i586 (due to unsatisfied libstdc++6[== 3.4.3]) do you agree ?
cc1plus and libstdc++6 is a vital part of your GCC installation, so basically you need to reinstall GCC. You will not be able to compile C++ programs without these.

I'm not sure exactly what cc1plus does; I think it's some sort of c++-capable preprocessor. But you do want to be using g++ or c++, not gcc or cc, to compile a c++ source file.

Libstdc++6 is the standard c++ libraries, without which you are unlikely to be able to get a c++ program to do very much that's useful. You need this for things like termainal, network and file I/O, as well as for basic data-types like strings, lists and tables.

The bottom line is that your g++ install is broken. You need to fix it by resolving its dependencies; i.e. installing the parts that you missed, or correcting the PATH so that you can actually find them.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling problems with gcc 3.4 1337 Twinkie Linux - Software 1 05-13-2005 03:51 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling gcc CuteBug Linux - Software 2 02-22-2004 09:19 AM
Compiling C++ GCC poeta_boy Linux - Newbie 14 10-14-2003 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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