Problème avec stdio.h
Lermit
-
Lermit -
Lermit -
Bonjour, je viens d'installer Ubuntu sur mon pc portable pour travailler sur mes tp info tranquillement chez moi, mais voilà quand j'essaie de compiler mon programme (qui fonctionne parfaitement à l'iut) le terminal m'écrit ceci:
gcc -c tableauA.c
tableauA.c:1:19: erreur: stdio.h : Aucun fichier ou dossier de ce type
tableauA.c:3:20: erreur: assert.h : Aucun fichier ou dossier de ce type
tableauA.c: Dans la fonction «renseigner» :
tableauA.c:11: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:13: attention : incompatible implicit declaration of built-in function «scanf»
tableauA.c: Dans la fonction «afficher» :
tableauA.c:20: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:28: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c: Dans la fonction «afficher_rev» :
tableauA.c:35: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:43: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c: Dans la fonction «main» :
tableauA.c:62: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:63: attention : incompatible implicit declaration of built-in function «scanf»
en fait il ne prend pas en compte la bibliothèque stdio.h, j'aimerais votre aide pour résoudre ce léger soucis technique
Merci d'avance
gcc -c tableauA.c
tableauA.c:1:19: erreur: stdio.h : Aucun fichier ou dossier de ce type
tableauA.c:3:20: erreur: assert.h : Aucun fichier ou dossier de ce type
tableauA.c: Dans la fonction «renseigner» :
tableauA.c:11: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:13: attention : incompatible implicit declaration of built-in function «scanf»
tableauA.c: Dans la fonction «afficher» :
tableauA.c:20: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:28: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c: Dans la fonction «afficher_rev» :
tableauA.c:35: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:43: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c: Dans la fonction «main» :
tableauA.c:62: attention : incompatible implicit declaration of built-in function «printf»
tableauA.c:63: attention : incompatible implicit declaration of built-in function «scanf»
en fait il ne prend pas en compte la bibliothèque stdio.h, j'aimerais votre aide pour résoudre ce léger soucis technique
Merci d'avance
Configuration: Linux Firefox 3.0
4 réponses
-
merci de m'avoir répondu mais il y a un truc bizarre quand je tape votre ligne de code, il me demande un mot de passe mais je n'arrive pas à l'écrire:
[sudo] password for nathan:
Sorry, try again. -
c'est normal que quand tu tapes ton mot de passe il ne s'affiche rien avec ubuntu mais la saisie est quand meme fait
tu tapes ton mot de passe et quand tu as finis tapes entree meme s'il n'affiche rien -
-
tape dans un terminal
sudo aptitude install build-essential