Sorry if this message is in the wrong place, but I could not find a
Turbo C group.
The following program compiles with Borland Turbo C 2.01, but does not
run properly:
#include <stdio.h>
#include <stdlib.h>
void main()
{
char cnum[] = "123.4";
float fnum;
fnum = atof(cnum);
printf("%f\n", fnum);
}
The error I get is:
" scanf : floating point formats not linked
Abnormal program termination"
Has anyone experienced these problems before, if so can I change some
settings within the compiler. Or does it mean using another compiler.
I have downloaded the Borland BCC55 FreeCommandLineTools, but I am
struggling to get it to compile my C programs (all the
instructions/help seem to be for CPP programs).
I have tried on two machines a) Pentium II 233MhZ (Laptop) and b)
Intel Celeron 800 MHz (Desktop).
Any help please.
Steve
[email protected]