Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ User's Guide - in general, a math library is required when floating-point computations are http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
In general, a Math library is required when floating-point computations are
included in the application.  The Math libraries are operating-system
independent.

For the 286 architecture, the Math libraries are placed under the
\WATCOM\LIB286 directory.

For the 386 architecture, the Math libraries are placed under the
\WATCOM\LIB386 directory.

An 80x87 emulator library, EMU87.LIB, is also provided which is both
operating-system and architecture dependent.

The following situations indicate that one of the Math libraries should be
included when linking the application.

 1. When one or more of the functions described in the MATH.H header file is
    referenced, then a Math library must be included.

 2. If an application is linked and the message


         "_fltused_ is an undefined reference"

    appears, then a Math library must be included.

 3. (16-bit only) If an application is linked and the message


         "__init_87_emulator is an undefined reference"

    appears, then one of the modules in the application was compiled with
    one of the "fpi", "fpi87", "fp2", "fp3" or "fp5" options.  If the "fpi"
    option was used, the 80x87 emulator library ( EMU87.LIB ) or the 80x87
    fixup library ( NOEMU87.LIB ) should be included when linking the
    application.

    If the "fpi87" option was used, the 80x87 fixup library NOEMU87.LIB
    should be included when linking the application.

    The 80x87 emulator is contained in EMU87.LIB.  Use NOEMU87.LIB in place
    of EMU87.LIB when the emulator is not wanted.

 4. (32-bit only) If an application is linked and the message


         "__init_387_emulator is an undefined reference"

    appears, then one of the modules in the application was compiled with
    one of the "fpi", "fpi87", "fp2", "fp3" or "fp5" options.  If the "fpi"
    option was used, the 80x87 emulator library ( EMU387.LIB) should be
    included when linking the application.

    If the "fpi87" option was used, the empty 80x87 emulator library
    NOEMU387.LIB should be included when linking the application.

    The 80x87 emulator is contained in EMU387.LIB.  Use NOEMU387.LIB in
    place of EMU387.LIB when the emulator is not wanted.

Normally, the compiler and linker will automatically take care of this.
 Simply ensure that the WATCOM environment variable includes the location of
the Watcom C/C++ libraries.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson