Thread: copysign undefined

  1. #1
    Registered User
    Join Date
    Feb 2010

    copysign undefined

    I want to use the function (double) copysign from math.h but I get the following warning:
    warning C4013: 'copysign' undefined; assuming extern returning int
    I have used #include <math.h> so I do not understand how this function can not be defined. Furthermore, in Tools-> Options -> Projects and Solutions -> VC++ Directories I have $(VCInstallDir)include in my Include files and $(VCInstallDir)lib in my Library files. What else do I need to do?

  2. #2
    Join Date
    Oct 2007
    Inside my computer
    There is no function named copysign. There is, however, a function named _copysign (not the underscore).
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Feb 2010
    ok, I clearly didn't pay attention. Thanx.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  3. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM
  4. Problem with OpenGL tutorial
    By 2Biaz in forum Windows Programming
    Replies: 18
    Last Post: 09-16-2004, 11:02 AM
  5. qt help
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 04-20-2002, 09:51 AM