PDA

View Full Version : gcc3 error.. hep please



Eukatae
12-24-2001, 02:05 AM
checking whether the C++ compiler (c++ ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.


run level problem? I'm just dum Dee ewe emm dumb. Anyone have a fix for me?

Yendor
12-24-2001, 09:50 AM
assuming you installed everything else, you missed installing the g++ front end to gcc.


package name gcc3-c++-3.0.1-3.rpm if you are using redhat.

seqhobbit
12-24-2001, 03:41 PM
No, this happens on RH7.2 systems because for some reason the configure script calls c++ instead of g++. On a default install of a RH7.2 the c++ binary isn't a symlink to g++, you have to manually switch it to point to g++3 and you won't get this problem anymore.

-seqhobbit

Yendor
12-24-2001, 04:55 PM
I didn't have that problem, or maybe i did. But what was happening was that g++ didn't exist so it was trying c++ so I made a link from g++ to g++3 (ditto for gcc to gcc3). Well thats how it worked on my RH 7.2 install anyway (which was pretty minimal).

fryfrog
12-24-2001, 10:52 PM
another way (perhaps easier, and less destructive to your system) is to just "export CC=gcc3 ; export CXX=g++3" before you compile. this way you still can use your old version of gcc and g++ (which at some point you WILL need).