Visual c++ 使用vc+;运行示例程序时出错+;和柴-3d

Visual c++ 使用vc+;运行示例程序时出错+;和柴-3d,visual-c++,opengl,Visual C++,Opengl,我正在尝试运行一个名为device.cpp的示例程序,该程序随chai-3d sdk一起提供。我已包含以下头文件 #include <assert.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <GL/glut.h> #include <chai3d.h> 第一次运行程序时,我得到

我正在尝试运行一个名为device.cpp的示例程序,该程序随chai-3d sdk一起提供。我已包含以下头文件

#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/glut.h>
#include <chai3d.h>

第一次运行程序时,我得到146个错误,在包含
#include
后,错误减少到2个。我正在使用sensable的幻影omni。wright现在我正在使用open haptics sdk,但我也想尝试chai-3d,为我提供支持。

您在项目中搜索过源文件中的“chai_DEBUG_PRINT”了吗?谷歌似乎暗示至少在其中一个头文件中应该有一个#define。CHAI#u DEBUG_PRINT只能在上面提到的头文件中找到,它也位于函数“inline void PRINT(const unsigned int a#u precision=2)const{string s;str(s,a#precision);CHAI#u DEBUG_PRINT(“%s\n”,s.c#str())}“我对这项技术还不熟悉,希望你能理解。我发现了这段代码——它和你的不同吗?”两者都是相同的,似乎我的头文件中缺少了#define chai_debug_print声明,现在这些错误已经解决了。
include\math/CVector3d.h(831) : error C3861: 'CHAI_DEBUG_PRINT': identifier not found
include\math/CMatrix3d.h(869) : error C3861: 'CHAI_DEBUG_PRINT': identifier not found