QT编译fabs not declared in this scope

使用MinGW进行编译出现如下情况。
在这里插入图片描述
在这里插入图片描述
这种查了不少资料都没有解决,因为在使用微软的编译器不存在这个问题。
后面发现只需要在加入头文件

#include <math.h>

就可以解决了。

猜你喜欢

转载自blog.csdn.net/u011046042/article/details/132257118
今日推荐