The information in this article applies to:
SYMPTOMSWhen an application uses the scanf() function to read a floating-point value from the console into an uninitialized "float" type global variable, an R6002 "floating-point format support not loaded" error occurs. This error also occurs when any formatted input routine is used to read a value. CAUSEThe compiler does not generate a reference to the __fltused variable that instructs the linker to load the floating-point support module. RESOLUTIONTo work around this problem, initialize the floating-point variable or use the variable in an expression in the routine that contains the scanf() call. STATUSThis behavior is expected. To minimize the size of the executable file, the compiler loads floating-point support only when it is required. MORE INFORMATION
When a module uses only one of the formatted input routines and does
not also initialize a floating-point variable, the compiler does not
load floating-point support. Sample Code
Additional query words: floating point not loaded
Keywords : kbCRT kbVC |
Last Reviewed: January 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |