Thread: floor & floorf

  1. #1
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501

    floor & floorf

    when I try to use floor it get linker errors, undefined references, I am including math.h I know because the #ifdef _MATH_H is defined. I greped math.h for floor but couldn't find anything (grep -i "floor" /usr/include/math.h"). Can someone help?
    Last edited by chrismiceli; 08-10-2003 at 12:18 AM.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    There is no such thing as floorf. C++ has an overloaded version for float, but C doesn't, AFAIK.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

Popular pages Recent additions subscribe to a feed