项目中如果使用了Qwt库,同时又在项目代码文件中#include <math.h>,则可能报“*math.h(626) : warning C4005:“M_PI”:宏重定义"的编译警告。解决方式:#include <cmath>即可。