Bonjour,
La première fois que j'ai essayé make check, ça ne marchait pas car je n'avais pas installé `check`
Maintenant, l'erreur affichée est :
cc -std=c11 -Wall -pedantic -g unit-test-bit.c -lcheck -lm -lrt -pthread -lsubunit -lcheck -lm -lrt -pthread -lsubunit -o unit-test-bit
/tmp/ccjEuGxy.o: In function `handout_examples':
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:38: undefined reference to `lsb4'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:45: undefined reference to `msb4'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:54: undefined reference to `bit_get'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:63: undefined reference to `bit_set'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:71: undefined reference to `bit_unset'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:79: undefined reference to `merge4'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:88: undefined reference to `merge8'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:96: undefined reference to `lsb8'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:103: undefined reference to `msb8'
/tmp/ccjEuGxy.o: In function `lsb4_exec':
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:126: undefined reference to `lsb4'
/tmp/ccjEuGxy.o: In function `bit_rotate_exec':
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:162: undefined reference to `bit_rotate'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:170: undefined reference to `bit_rotate'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:177: undefined reference to `bit_rotate'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:183: undefined reference to `bit_rotate'
/tmp/ccjEuGxy.o: In function `lsb8_msb8_exec':
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:211: undefined reference to `lsb8'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:216: undefined reference to `msb8'
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:217: undefined reference to `msb8'
/tmp/ccjEuGxy.o: In function `merge8_exec':
/home/sophieammann/Documents/progos/projet/week04/pps20-projet-daffy/done/unit-test-bit.c:243: undefined reference to `merge8'
collect2: error: ld returned 1 exit status
<builtin>: recipe for target 'unit-test-bit' failed
make: *** [unit-test-bit] Error 1
J'imagine que le makefile donné est correct pour les tests, et j'ai bien ajouté le fichier bit.c comme demandé.
D'avance merci