如何在visual studio中包含NodeCallback和MatrixTransform库
How to include NodeCallback and MatrixTransform Library in visual studio?
我使用microsoft Visual Studio 2010,当我包含NodeCallback或MatrixTransform时,我收到一个错误。
include <osg/NodeCallback>
include <osg/MatrixTransform>
上面两个库用红色下划线表示有错误。
下面是我构建文件时visual studio的输出:
animationcallback.h(2): fatal error C1083: Cannot open include file: 'osg/NodeCallback': No such file or directory
那么我如何删除这些错误
您需要将OSG include文件夹作为包含目录添加到您的项目中。
Right-click on the project -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.