anyone know why i would get a runtime error R6002
- floating point not loaded
in what seems like a fine program
it occurs at the point where the program attempts to read a file
anyone know why i would get a runtime error R6002
- floating point not loaded
in what seems like a fine program
it occurs at the point where the program attempts to read a file
Quoted from MSDN Library
C Run-Time Error R6002
floating-point support not loaded
The program needs the floating-point library, but the library was not linked to the program.
One of the following may have occurred:
The program was compiled or linked with an option (such as /FPi87) that required a coprocessor, but the program was run on a machine that did not have a coprocessor installed.
A format string for a printf or scanf function contained a floating-point format specification, and the program did not contain any floating-point values or variables.
The compiler minimizes a program's size by loading floating-point support only when necessary. The compiler cannot detect floating-point format specifications in format strings, so it does not load the necessary floating-point routines.
Use a floating-point argument to correspond to the floating-point format specification, or perform a floating-point assignment elsewhere in the program. This causes floating-point support to be loaded.
In a mixed-language program, a C library was specified before a FORTRAN library when the program was linked. Relink and specify the C library last.
"Service of the poor and destitutes is the service of the God"
Normative Changes to ISO/IEC 9899:1990 in Technical Corrigendum 1
Incompatibilities Between ISO C and ISO C++
I think it will help others if you show the code.
Long time no C. I need to learn the language again.
Help a man when he is in trouble and he will remember you when he is in trouble again.
You learn in life when you lose.
Complex problems have simple, easy to understand wrong answers.
"A ship in the harbour is safe, but that's not what ships are built
for"
thanks sunnypalsingh, ur a legend
gurus must be laughingOriginally Posted by chatesmick
"Service of the poor and destitutes is the service of the God"
Normative Changes to ISO/IEC 9899:1990 in Technical Corrigendum 1
Incompatibilities Between ISO C and ISO C++