makefile
Dernière réponse : dans Programmation
hello, j'aimerais juste compiler une classe matrice en c++ sous linux: j'ai un fichier avec les declarations, 1 avec les definitions et 1 programme principale
mc
mc
Autres pages sur : makefile
Lassé par la pub ? Créez un compte
bon ben merci pour ton aide...
j'ai fait un makefile comme ca :
progmatrice: mainmatrice.o matrice.o
g++ mainmatrice.o matrice.o -o progmatrice
mainmatrice.o:mainmatrice.cpp matrice.h
g++ -c mainmatrice.cpp
matrice.o: matrice.cpp matrice.h
g++ -c matrice.cpp
j'obtiens donc un fichier progmatrice
mais si je tape progmatrice j'ai le message:
"bash : progmatrice : command not found"
Bon ma question est sans doute conne (la question c comment executer le programme) mais bon faut bien commmencer...
mc
j'ai fait un makefile comme ca :
progmatrice: mainmatrice.o matrice.o
g++ mainmatrice.o matrice.o -o progmatrice
mainmatrice.o:mainmatrice.cpp matrice.h
g++ -c mainmatrice.cpp
matrice.o: matrice.cpp matrice.h
g++ -c matrice.cpp
j'obtiens donc un fichier progmatrice
mais si je tape progmatrice j'ai le message:
"bash : progmatrice : command not found"
Bon ma question est sans doute conne (la question c comment executer le programme) mais bon faut bien commmencer...
mc
Lassé par la pub ? Créez un compte
- Contenus similaires :
Tags :