C2086: 'int WINGDIAPI' : redefinition errors in Open Scene Graph?
The solution is: [Obtained from this website]
You need to add WIN32 to the defines in your project. In Visual Studio, right-click on your project, go to C/C++, Preprocessor, and in the Preprocessor Definitions field add WIN32 for both debug and release configurations. While you're at it, also add _DEBUG for the debug configuration and NDEBUG for the release configuration...
For some reason the default VS projects have no preprocessor definitions, even though these, at least, should almost always be used...
本文介绍了解决OpenSceneGraph中出现C2086重复定义错误的方法。通过在项目的预处理器定义中添加WIN32,可以在Visual Studio中解决此问题。同时,还需要根据配置类型分别添加_DEBUG和NDEBUG。
4172

被折叠的 条评论
为什么被折叠?



