LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   In Cent os:C++ compiler cannot create executbles (https://www.linuxquestions.org/questions/linux-newbie-8/in-cent-os-c-compiler-cannot-create-executbles-938019/)

aktamilbe 04-04-2012 02:43 AM

In Cent os:C++ compiler cannot create executbles
 
What is the reason for the error "C++ compiler cannot create executables"?Even though I have gcc and g++...?Please help me in this issue.?Currently I am working on rpm build in Centos....!

knudfl 04-04-2012 03:43 AM

Welcome to LQ.

Either a package or some files are missing /// corrupt.

Please try this : # yum reinstall \
cpp gcc libgcc gcc-c++ glibc-devel glibc-common glibc-headers kernel-headers

.

John VV 04-04-2012 05:01 AM

without knowing what you did it is basically impossible to say
a few guesses

1)you did not issue the correct commands ?
the fix ??? unknown

2)you did not install the required prerequisites to build the software ?
the fix ??? unknown

3)you did not install the full gcc tool chain ?
for that
Code:

su -
yum groupinstall "Development Tools" "Development Libraries"

double check the spelling from the grouplist
Code:

yum grouplist

as to this ????
Code:

I am working on rpm build in Centos....!
?? what ???

use yum to install rpmbuild

AJ2012 04-04-2012 06:07 AM

Download and Install mingw compiler package

Nylex 04-04-2012 06:35 AM

Quote:

Originally Posted by AJ2012 (Post 4644409)
Download and Install mingw compiler package

This does not help the OP, as MinGW is for Windows.

AJ2012 04-04-2012 07:08 AM

Which version of centos u are using.
You probably need to install the updated g++ package from 5.2 onwards

johnsfine 04-04-2012 08:10 AM

Quote:

Originally Posted by aktamilbe (Post 4644271)
What is the reason for the error "C++ compiler cannot create executables"?Even though I have gcc and g++...?

Meaningful use of g++ requires more packages installed than just gcc/g++. I don't know the correct list of such packages, but knudfl's list in post #2 of this thread looks very plausible. Section (3) of JohnVV's post #3 also looks somewhat plausible.

The rest of the help you have gotten so far doesn't look very helpful to me. I'm posting mainly to help you focus on the constructive earlier replies rather than get lost in the rest.


All times are GMT -5. The time now is 08:46 PM.