fpclassify not found - Help

This is a discussion on fpclassify not found - Help ; #include // snip double x = foo(); int i = fpclassify(x); // error: 'fpclassify' was not declared in this scope man fpclassify indicates that math.h must be included, but still can't find fpclassify()....

+ Reply to Thread
Results 1 to 2 of 2

Thread: fpclassify not found

  1. fpclassify not found

    #include

    // snip

    double x = foo();

    int i = fpclassify(x);

    // error: 'fpclassify' was not declared in this scope

    man fpclassify indicates that math.h must be included, but still can't find
    fpclassify().




  2. Re: fpclassify not found

    "John Smith" writes:

    > #include
    >
    > // snip
    >
    > double x = foo();
    >
    > int i = fpclassify(x);
    >
    > // error: 'fpclassify' was not declared in this scope
    >
    > man fpclassify indicates that math.h must be included, but still can't find
    > fpclassify().


    Read farther in the man page. You need to either define feature test
    macros, or compile with -std=c99

    Scott
    --
    Scott Hemphill hemphill@alumni.caltech.edu
    "This isn't flying. This is falling, with style." -- Buzz Lightyear

+ Reply to Thread