• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

m3rcury

Senior member
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
 


<< 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 ?
 
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.
 
Back
Top