I am writing a c program for a virtual computer. The problem I am having right now is that when I try to compile, I get an error that says "undefined reference to 'pow' I'm not sure how to change it correctly.
void memAssign(signed int *mem, char line[SIZE],signed int *memPos){
signed int *count= &mem[73];
signed int *length= &mem[74];
*length = strlen(line)-1;
*count=1;
if(toDigit(line[*length-1])<0 || toDigit(line[*length-1])>9){
printf("Wrong command form.\n");
return;
}
while(line[*length - *count] != ' '){
mem[*memPos] += (toDigit(line[*length - *count]) * (int)pow(10, *count - 1));
*count += 1;
}
count = NULL;
length = NULL;
}