QT编译fabs not declared in this scope

The following situation occurs when compiling with MinGW.
insert image description here
insert image description here
This kind of information has not been solved after checking a lot of information, because this problem does not exist when using Microsoft's compiler.
It was found later that only the header file needs to be added

#include <math.h>

That's it.

Guess you like

Origin blog.csdn.net/u011046042/article/details/132257118