clros ha scritto:Riporta qui il programma e il comando di compilazione...
#include <stdio.h>
int
main(int argc, char **argv)
{
printf(Hello, World\n);
}
come da documento:
First test compilation
To test a compiler, enter the following in a text editor and save it under the name hello_world.c in some
working drawer:
#include <stdio.h>
int
main(int argc, char **argv)
{
printf(Hello, World\n);
}
In the shell, change to the directory where you saved the file. Compile it with
gcc -o hello_world hello_world.c
quello che ho fatto
Ma ecco l'output:
hello_world.c:5 In function 'main':
hello_world.c:5: error: 'Hello' undeclard (first use in this funcion)
hello_world.c:5 error: (Each undeclared identifier is reported once for each function it appears in.)
hello_world.c:5 error: stray'\' in program
hello_world.c:5 error: 'World' undeclard (first use in this funcion)
hello_world.c:5 error: syntax error before 'n'