This so basic that it should work.... Any ideas would be appreciared. Using a number directly in the sqrt allows it to compile.
primrose > cat a.c
#include <stdio.h>
#include <math.h>
int main(void)
{
double abcd=9;
printf("%f\n",sqrt(abcd));
}
primrose > gcc a.c
Undefined first referenced
symbol in file
sqrt /var/tmp//ccm7jh8O.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
primrose >