I'm getting this error. I'm guessing either there is an error in my code or I am missing a library. Can I please have some ideas on what the problem is?
Code:
main.c:(.text+0x55): undefined reference to
Code:
$ gcc *.c
/tmp/ccP8MDTO.o: In function `getInput':
main.c:(.text+0x55): undefined reference to `validateInput'
main.c:(.text+0xb2): undefined reference to `validateInput'
main.c:(.text+0x10f): undefined reference to `validateInput'
collect2: ld returned 1 exit status
Code:
bool getInput (int* pFahrenheit, int* pFeet, int* pPounds)
{
bool isValid=false;
//Prompt for Temperature
int count=scanf("%d",pFahrenheit);
if(count==1)
{
if (validateInput(*pFahrenheit,0,212))
{
isValid=true;
}
}
}
Bookmarks