INF: FPSEG() and FP_OFF() Require DOS.H to Avoid C2106 Error

ID Number: Q26588

5.00 5.10 6.00 6.00a 6.00ax 7.00 | 5.00 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, 6.0ax, and C/C++ version

7.0, you must include the DOS.H header file in your program;

otherwise, the compiler believes FP_SEG() and FP_OFF() are function

calls rather than macro definitions. Because a function is not an

lvalue, it generates the C2106 error. For more information on the

FP_SEG() and FP_OFF() macros, consult the run-time library reference

or online help that shipped with your version of the compiler.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00