while not actually trying to _compile_ the thing myself, the more i read into this problem, the more it looks like a statement in the code that tries to read a floating point value from something that isn't a float, or that the libraries aren't being loaded due to the absence of a floating point expression in the code:
>>Hmm. Sounds like that could be my problem -- I read in the data, but
>>don't do any floating point computation at all. Straight conversion.
>
>
>> cin >> sample.number;
>
>
> That is text to floating-point conversion.
>
> Stephen Howe [TeamSybase]
> London, UK
That's true, but it doesn't seem to be enough to trigger the compiler to
load the floating point libraries.
I added a floating point expression (sample.number * 1.0) and everything
started behaving.
========================
> The docs say that the problem occurs because no fp value is being
> passed to a function. So adding "cout << sample.number;" will "fix"
> the problem.
Aha! That's better than adding in a gratuitous mathematical expression
that I didn't need. I can actually make a case for printing out the
original value in the context of the original program. (And it works!)
> It is also possible to force the fp support to be linked in
> this way:
>
> extern "C" char _ppfltused_;
> #pragma extref _ppfltused_;
====================
> For the first time since I used Watcom, I have an error message that read=
s
> "Floating-point support not loaded." That never happened to me. And I
> played around the switch and include files to no avail. Does anyone
> know how to deal with this?
> =
> Marc St-Jacques (stjacque@ere.umontreal.ca)
> Page d'accueil:
http://mistral.ere.umontreal.ca/~stjacque
Well as stated in the documentation:
"Floating-point support not loaded
You have called one of the printf functions with a format of "%e", "%f", or "%g", but have not
passed a floating-point value. The compiler generates a reference to the variable "_fltused_" whenever you pass a floating-point value to a function. During the linking phase, the extra floating-point formatting routines will also be brought into your application when "_fltused_" is referenced. Otherwise, you only get the non floating-point formatting routines."
So look for printf():s and floating point format tokens and check that the argument