19 May
2001
19 May
'01
17:15
Florian Gross wrote: > > * Christoph Maurertextete am 18.05.01: > > Am Don, 17 Mai 2001, schrieb Florian Gross: > > > * Christoph Maurer textete am 17.05.01: > > > > Am Mit, 16 Mai 2001, schrieb Florian Gross: > > [configure] > > > > > > checking for gcc... cc > > > > > checking whether the C compiler (cc -O -Ae -O -Ae) works... no > > > > > configure: error: installation or configuration problem: \ > > > > > C compiler cannot create executables. > > Mehrere Ideen > > 1. Ist /usr/bin/cc ein Link auf /usr/bin/gcc > > Ja. Was sagen: which gcc which cc which as which ar which ld which test > > 3. Hast Du vielleicht die $CFLAGS Variable irgendwie seltsam belegt > > _Ich_ bestimmt nicht. Gut so. Irgendwelche aliase, die genauso heissen wie Systemprogramme vorhanden (ls, rm, cp, mv, test)? Eine Datei namens "test" vorhanden? Vor dem Configure-Lauf config.cache gelöscht? > > > 4. Probier doch mal ein Hello-World-Programm zu kompilieren. > > Ähhh, hast du mir eins? ;-) Verstanden :) Folgendes als hello.c abspeichern. -- snip --- #include int main(void) { printf( "hello world" ); return 0; } -- snip -- Und mit gcc -Wall -o hello hello.c übersetzen Nun sollte ein Programm namens hello vorliegen. Noch detailierter gcc -v -Wall -o hello hello.c Ralf