Un troll j'imagine bien
Sinon j'ai un problème avec mon makefile. Je suis occupée à apprendre, et j'ai voulu jongler pour être sûre de bien comprendre.
Voici mon makefile :
http://pastebin.com/Qh8GASP3
Pour vous expliquer, j'ai 4 fichier :
main.c, main.h, hello.c, hello.h
En gros :
main.h contient un #include "hello.h" ainsi que d'autres bibli.
hello.h contient le prototype d'une fonction.
Mais quand j'utilise make il me dit :
jenny@Jenny-Debian:~/Programmation$ make
gcc -o hello.o hello.c
/usr/lib/gcc/i486-linux-gnu/4.7/../../../i386-linu
x-gnu/crt1.o:
In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [hello.o] Erreur 1
Ca peut venir d'où ? Merci ! Je précise qu'avec gcc en console mon programme compile bien ^^