compiler un programme C sous ubuntu
bonjour,
j'arrive pas à compiler un fichier C sous ubuntu, pourtant c'est un programme de base (hello word),
voila le fichier C
Code:
1 2 3 4 5 6 7
| #include <stdio.h>
main()
/* Notre premier programme en C */
{
printf("hello, world\n");
return 0;
} |
voila le message affiché par le compilateur: (mon fichier C s'appelle annuaire.c)
Citation:
annuaire.c:1:19: erreur: stdio.h : Aucun fichier ou répertoire de ce type
annuaire.c: Dans la fonction «main» :
annuaire.c:5: attention : incompatible implicit declaration of built-in function «printf»