A floating point emulator is used to
manipulate floating point numbers in runtime library functions like scanf( ) and atof( ).
There are
some cases, such as arrays of structures, where float is a structure member and the reference to the
float is a bit obscure; that’s why the compiler does not detect the need for the emulator. To overcome
this limitation, a reference to the address of a float is made. When the compiler encounters an address
of a float, it automatically sets a flag to have linker link in the floating point emulator. That is why
these statements force the linking of the floating point emulator into a program. Thus, to prevent this
error, include the statement in the beginning of your programs.
Do'stlaringiz bilan baham: |