GCC Error: C compiler cannot create executables.
Rupert Wood
me@rupey.net
Wed Jul 31 07:11:00 GMT 2002
Danny Ybarra wrote:
> Whenever I try to compile anything on one of our 10 AIX 5.1
> machines, I get C compiler cannot create executables.
That's the error from a configure script.
You might get useful output from gcc -v; try compiling a simple C
program, e.g. create a text file containing the following:
#include <stdio.h>
int main(void) { printf("Hello, World!\n"); return 0; }
and save it as hw.c. Then run:
gcc -v hw.c
and you might get more useful error messages.
Likely reasons are that you are missing one or more of:
* an assembler (usually called 'as')
* a linker (usually called 'ld')
* a C library (usually '/lib/libc.a' and/or '/lib/libc.so')
* lead in/out objects (varies by OS; usually .o files in /lib)
all of which you'll likely find on your OS install media.
(Alternatively, you can get a binary install of GNU binutils for the
first two.)
Good luck,
Rup.
More information about the Gcc-help
mailing list