PDA

Visualizza la versione completa : [C] Compilare "Hello World" in C in Eclipse su piattaforma Windows


formeppe
02-08-2009, 14:18
Cari tutti...sto cercando di compilare un semplice programmino in c su eclipse...ho installato eclipse, cdt and MinGW.Il codice e il seguente

#include <stdio.h>

int main()
{
printf ("Hello World!\n");
return 0;
}

Ma ho molti errori.....cioe questi

**** Build of configuration Debug for project a ****

**** Internal Builder is used for build ****
gcc -O0 -g3 -Wall -c -fmessage-length=0 -osrc\a.o ..\src\a.c
..\src\a.c:11:19: error: stdio.h: No such file or directory
..\src\a.c:12:20: error: stdlib.h: No such file or directory
..\src\a.c: In function 'main':
..\src\a.c:15: warning: implicit declaration of function 'puts'
..\src\a.c:16: error: 'EXIT_SUCCESS' undeclared (first use in this function)
..\src\a.c:16: error: (Each undeclared identifier is reported only once
..\src\a.c:16: error: for each function it appears in.)
Build error occurred, build is stopped
Time consumed: 3031 ms.

Avete qualche suggerimento....grazie a tutti anticipatamente

raffaeu
05-08-2009, 15:25
L' errore e' qui:
..\src\a.c:11:19: error: stdio.h: No such file or directory
..\src\a.c:12:20: error: stdlib.h: No such file or directory

Non la trova, guarda se nelle tue reference stai puntando correttamente al file.

Loading