erf(x) and math.h

后端 未结 4 628
闹比i
闹比i 2021-01-13 06:46

According to this site the error function erf(x) comes from math.h. But actually looking in math.h, it isn\'t there, and gcc cannot compile the following test program while

4条回答
  •  半阙折子戏
    2021-01-13 07:24

    I had the same problem using gcc from cygwin on a x86 processor. The "-lm" library include parameter (after the file list!) worked perfectly.

提交回复
热议问题