Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

16-Bit DOS Extenders (Users)

posted by Japheth(R) Homepage, Germany (South), 28.01.2008, 19:35

> I have obtained a copy of the Phar Lap 286/Extender. This seems work well
> with my Borland C++ 3.1 16-Bit DOS application. I have one error when I
> try to format a foating point number using printf for example. The error
> is:
> "printf : floating point formats not linked. Abnormal program
> termination"
> Does anybody have any idea what header file or library file I need to
> include to remove this error. All other formats (strings, integers)
> worked correctly without error.

It's not a question of header files. You have to force the linker to include the floating point stuff. IIRC there is/was an external "_fltused" which has to be referenced in the source. I also remember with MS VC 1.5, it was sufficient to declare a initialized global floating point variable somewhere, the reference to _fltused was not needed then.

MS-DOS forever!


Complete thread:

Back to the forum
Board view  Mix view
15275 Postings in 1373 Threads, 253 registered users, 14 users online (0 registered, 14 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum