g++ in linux gives "c++ compiler cant create executables" error

m3rcury

Senior member
Jan 8, 2001
375
0
76
I have redhat 7.2, and I upgraded gcc to 3.0.3. I can create a project under kdevelop, but it says "error: c++ compiler cannot create
executables". i need to get this working for a school project due in a weeks time. does anybody know how to solve this problem or why
is happening? i tried running as root, and it still gave the same error. should i try reinstalling gcc?

thanks
 

NorthenLove

Banned
Oct 2, 2001
525
0
0


<< I have redhat 7.2, and I upgraded gcc to 3.0.3. I can create a project under kdevelop, but it says "error: c++ compiler cannot create
executables". i need to get this working for a school project due in a weeks time. does anybody know how to solve this problem or why
is happening? i tried running as root, and it still gave the same error. should i try reinstalling gcc?

thanks
>>



Why did you upgrade to 3.0.3 ?
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Did you get any specific messages about why the compile test failed? That would help...

But, in any event, see if you've got a /usr/lib/gcc-lib/i686-pc-linux/3.0.3 directory (or similar). Depending on how the compiler was configured, it may be trying to link to a library there and not have the linker configured to find it. If you've got that directory, add it to /etc/ld.so.conf, run ldconfig, and see if that solves the problem.