Comment utiliser valgrind ?
Résolu
oupsman
Messages postés
319
Statut
Membre
-
oupsman Messages postés 319 Statut Membre -
oupsman Messages postés 319 Statut Membre -
Bonjour,
voici mon probleme :
code :
valgrind nom_fichier.c
Resultat :
valgrind : <nom_fichier.c> : command not found
Comment utiliser la commande valgrind ?
Merci d'avance pour votre aide. ;-)
voici mon probleme :
code :
valgrind nom_fichier.c
Resultat :
valgrind : <nom_fichier.c> : command not found
Comment utiliser la commande valgrind ?
Merci d'avance pour votre aide. ;-)
Configuration: Ubuntu 7.10
1 réponse
-
En espérant qu'il ne soit pas trop tard, il faut l'utiliser sur un programme deja compilé.
$ gcc -o prog nom_fichier.c
$ valgrind ./prog
Je t'invite à aller regarder le manuel présent sur le site officiel.
Tu peux commencer par ici: https://www.valgrind.org/docs/manual/quick-start.html
Bonne chance pour la suite...
et bonne prog' ;)