LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-04-2012, 03:43 AM   #1
aktamilbe
LQ Newbie
 
Registered: Apr 2012
Location: Chennai
Posts: 1

Rep: Reputation: Disabled
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....!
 
Old 04-04-2012, 04:43 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
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

.
 
1 members found this post helpful.
Old 04-04-2012, 06:01 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
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
 
Old 04-04-2012, 07:07 AM   #4
AJ2012
LQ Newbie
 
Registered: Apr 2012
Location: Bangalore, India
Posts: 4

Rep: Reputation: Disabled
Download and Install mingw compiler package
 
Old 04-04-2012, 07:35 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by AJ2012 View Post
Download and Install mingw compiler package
This does not help the OP, as MinGW is for Windows.
 
Old 04-04-2012, 08:08 AM   #6
AJ2012
LQ Newbie
 
Registered: Apr 2012
Location: Bangalore, India
Posts: 4

Rep: Reputation: Disabled
Which version of centos u are using.
You probably need to install the updated g++ package from 5.2 onwards
 
Old 04-04-2012, 09:10 AM   #7
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by aktamilbe View Post
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create clubbing80s Linux - Software 3 07-05-2010 09:17 PM
[SOLVED] C compiler cannot create executables mlangdn Slackware 15 04-16-2010 10:23 PM
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
C compiler cannot create executables martincho Linux - Software 3 10-01-2004 08:04 PM
C compiler cannot create executables chrismiceli Linux - General 2 05-11-2003 04:21 PM


All times are GMT -5. The time now is 04:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration