如何在 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 包含文件夹作为包含目录添加到您的项目中。
Right-click on the project -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.
我使用的是 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 包含文件夹作为包含目录添加到您的项目中。
Right-click on the project -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.