Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

floating point problems

Status
Not open for further replies.

brabbit

Programmer
Joined
Apr 26, 2001
Messages
4
Location
GB
i am trying to read floats from a text file and keep getting error "abnormal program termination floating point formats not linked".please help.
 
thanks for reply.unfortunately no joy.
although if i change floats to ints the file read
works ok.
the actual error is

scanf:floating point formats not linked
abnormal program termination.

please help.
 
Hi,
Try declaring and assigning a float at the beginning of your program.

like so.

float dummy = 3.14;

Hope this helps.
Pappy
You learn something everyday.
 
thanks for help pappy.unfortunately i think my description was a bit mis-leading.although the program reads the floats from the file it is when trying to print to a printer that the fault occurs.i am using borland 4.5 and have selected target expert followed by application and dos standard.in this mode the fault occurs.however,if a use easy-win i can see the results on screen put cannot print a report.
any assistance will be much appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top