Bob R.
2008-06-13 22:26:31 UTC
#include
#include
#include "genlib.h"
#include "simpio.h"
main()
{
double n1, n2, total;
printf("The first number is \n");
n1 = GetReal();
printf("The second number is \n");
n2 = GetReal();
total = n1 + n2;
printf("The total is %g. /n", total);
}
When I compile, it says [Linker error] undefined reference to 'GetReal()' and 'Id returned 1 exit status' (the function GetReal is defined in simpio, i believe)
how can I fix these errors? thanks!