编译时出现C3861错误
Error C3861 during compile
你好,我试着在VS2012 (Ultimate)中运行一些OpenGL (freeglut)示例一切都工作得很好,我的绘制例程绘制了我所期望的,问题是当我试图在我的DrawScene()中添加DisplayFPS()时,我得到"错误C3861: 'DisplayFPS':未找到标识符"问题不是在功能本身,因为当我从另一个地方调用它时一切都好。如何解决这个错误?谢谢!
GLvoid DrawScene( GLvoid )
{
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
// draw some geometry here
glFlush();
glutSwapBuffers();
DisplayFPS();
}
void DisplayFPS( void )
{
// some code here
}
如何将DisplayFPS
声明在DrawScene
之上:
void DisplayFPS( void ); // <- THIS
GLvoid DrawScene( GLvoid )
{
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
// draw some geometry here
glFlush();
glutSwapBuffers();
DisplayFPS();
}
void DisplayFPS( void )
{
// some code here
}
相关文章:
- C++ 类成员调用错误 C3861
- 我遇到:错误2错误C3861:"fx":找不到标识符
- 编译错误C3861 Visual Studio 2010
- 错误 C3861:"strcpy_y":找不到标识符
- 错误 C3861:"initNode":找不到标识符
- 错误 C3861:"getGaborKernel":找不到标识符
- 错误 C3861:"对齐":找不到标识符
- 错误错误 C3861:"cvPyrSegmentation":找不到标识符
- 错误 C3861:"_crt_va_end":找不到标识符
- 错误 C3861:"roundf":找不到标识符
- 错误 C3861:"ResGain":找不到标识符
- 错误 C3861:"_beginthreadex":找不到标识符
- CUDA / C++:错误C3861:"uint2float":找不到标识符
- 错误 4 错误 C3861:"snprintf":找不到标识符
- 错误 C3861:"系统":找不到标识符
- mystackwalker.cxx(29):错误 C3861:"捕获堆栈回跟踪":找不到标识符
- 编译时出现C3861错误
- 错误 C3861:"glewGetContext":找不到标识符
- 如何摆脱错误C3861:
- 错误 C3861:"rollDice":找不到标识符