Bonjour j'ai creer un programme en c et quand je compile, le compilateur me retourne cette erreur là :
./ccqqcaaa.o(.text+0x1cf):Tp2.c: undefined reference to `inferieur'
Pourtant j'ai bien inclu mon sspg.h dans le prog principal donc je comprend pas.
appel de la fonction dans le prog principal:
déclaration de la fonction :Code:
1
2
3
4
5
6
7
8
9
10
11
12 for(i=0;i<nbEtu-1;i++) { for(j=i+1;j<nbEtu;j++) { if(inferieur(tab[i],tab[j]) == 1) { ech = tab[i]; tab[i] = tab[j]; tab[j] = ech; } } }
J'ai bien déclarer tab[] en TEtudiant.Code:int inferieur(TEtudiant pEtu1,TEtudiant pEtu2);