erfc()是标准库math.h里面的函数吗?
c语言吧
全部回复
仅看楼主
level 1
头文件里有math.h,我在开头也定义了,但是用这个函数时,编译没错,链接出错
1.obj : error LNK2001: unresolved external symbol "double __cdecl erfc(double)" (?erfc@@YANN@Z)
Debug/ceshi3.exe : fatal error LNK1120: 1 unresolved externals
为什么?是不能直接用吗?
谢谢
2013年04月24日 02点04分 1
level 13
-lm
2013年04月24日 02点04分 3
什么意思啊,求详细
2013年04月24日 02点04分
level 11
链接没错但是如果用VC6有警告,
warning C4013: 'erfc' undefined; assuming extern returning int
mingw正常。
2013年04月24日 02点04分 4
不是警告,是报错了
2013年04月24日 03点04分
我的意思是,erfc是c99的函数,vc6不支持。
2013年04月24日 03点04分
1