LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   c++ compiler problem (https://www.linuxquestions.org/questions/linux-general-1/c-compiler-problem-110171/)

evian 10-29-2003 09:43 PM

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

Y0jiMb0 10-30-2003 01:14 AM

Do you have permissions to create executables in the directory you're working?
Regards

evian 10-30-2003 06:20 AM

Yes I do, and even if I am root it does the same thing

Y0jiMb0 10-30-2003 06:52 AM

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?
:confused:

Regards

Y0jiMb0 10-30-2003 11:29 AM

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


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