分类
opengl 与 c++知识二次巩固
引言
这篇文章写两个在vs2022(或vs2019)中,编译c++的两个报错:
- You have to define _USE_MATH_DEFINES in the compiler settings!
- xxx已经在 xxx.obj 中定义
下面是详细的解答:
1.报错1
1)ERROR
“You have to define _USE_MATH_DEFINES in the compiler settings!”
2)报错原因
_USE_MATH_DEFINES需要在openmesh头文件的前边被定义
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES