I'm beginning to work with C and i wanted to compile a very simple file :
#include <stdio.h>
void main (void)
{
{
printf( "Bienvenue sur WORDPAD\n\n");
}
}
with "cc main.C" and here what i got :
[Belaran:~/Desktop/Info/Langage C] belaran% cc main.c
main.c: In function `main':
main.c:4: warning: return type of `main' is not `int'
/usr/bin/ld: /usr/lib/libSystem.dylib load command 9 unknown cmd field
[Belaran:~/Desktop/Info/Langage C] belaran%
#include <stdio.h>
void main (void)
{
{
printf( "Bienvenue sur WORDPAD\n\n");
}
}
with "cc main.C" and here what i got :
[Belaran:~/Desktop/Info/Langage C] belaran% cc main.c
main.c: In function `main':
main.c:4: warning: return type of `main' is not `int'
/usr/bin/ld: /usr/lib/libSystem.dylib load command 9 unknown cmd field
[Belaran:~/Desktop/Info/Langage C] belaran%