LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-29-2003, 09:43 PM   #1
evian
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 15
c++ compiler problem


Hello,

I've been getting this error with a couple of programs I am trying to make. It says,

checking for g++... g++
checking for C++ compiler default output... configure: error: C++ compiler cannot create executables

I know what there error is saying, but how do i make it so that my c++ compiler can create executables?

Thank you
 
Old 10-30-2003, 01:14 AM   #2
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Do you have permissions to create executables in the directory you're working?
Regards
 
Old 10-30-2003, 06:20 AM   #3
evian
Member
 
Registered: Mar 2003
Posts: 126

Original Poster
Rep: Reputation: 15
Yes I do, and even if I am root it does the same thing
 
Old 10-30-2003, 06:52 AM   #4
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Hi!
well, I'm thinking a couple of things you can do.
First, do you get the same problem if you try to compile a C program (i.e. directly with gcc, instead g++)?
Could you write what is the exact command you typed, and the output?
Did you try the '-v' (verbose) option?What does it say?
Have you checked if you have an executable output of the compiler in the same directory with the same name but whitout writting permissions? (maybe the compiler tries to overwrite the file and it cannot)
Or maybe you have a problem with the configuration of the compiler. Did it happen before, or is the first time?What did you change since the last time the g++ worked well?


Regards
 
Old 10-30-2003, 11:29 AM   #5
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
You could have the same problem as the one in this thread
http://www.linuxquestions.org/questi...threadid=83295
And if you search for "C++ compiler cannot create executables" as exact string you will find still more info.
Regards
 
  


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 On
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 fiorejm Linux - Software 6 11-12-2009 12:35 PM
C++ Compiler Problem jefe_goode Mandriva 0 06-14-2004 02:23 PM
C++ compiler problem? New 2 The Game Linux - Software 2 09-06-2003 01:09 AM
Problem with C compiler Tez218 Linux - Software 1 08-18-2003 07:56 PM
compiler problem athenerx Linux - Newbie 1 07-29-2002 06:52 PM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration