runtime error

This is a discussion on runtime error within the C Programming forums, part of the General Programming Boards category; anyone know why i would get a runtime error R6002 - floating point not loaded in what seems like a ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    5

    runtime error

    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

  2. #2
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    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.

  3. #3
    Registered User cbastard's Avatar
    Join Date
    Jul 2005
    Location
    India
    Posts
    167
    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"

  4. #4
    Registered User
    Join Date
    Nov 2005
    Posts
    5
    thanks sunnypalsingh, ur a legend

  5. #5
    Bond sunnypalsingh's Avatar
    Join Date
    Oct 2005
    Posts
    162
    Quote Originally Posted by chatesmick
    thanks sunnypalsingh, ur a legend
    gurus must be laughing

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  2. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  3. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 09:39 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  5. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21