0

我正在测试这段代码: http: //www.codeproject.com/Articles/1824/True-OpenGL-Zooming

我做了这个页面中说的每一个步骤:http: //surflab.cise.ufl.edu/wiki/Getting_Started_with_OpenGL_in_VisualC%2B%2B_2010我的意思是这个步骤: 1.下载示例代码:http ://www.opengl.org/resources /code/samples/glut_examples/examples/cube.c

  1. 单击在 Visual Studio 中创建新项目

  2. 选择 Win32 控制台应用程序,输入项目名称,然后单击确定

  3. 在显示的向导窗口中,单击应用程序设置并选中空项目,单击完成。

  4. 从项目菜单中选择添加现有项目

  5. 选择示例代码中的所有源文件,然后单击添加

  6. 从项目菜单中选择属性

  7. 在窗口顶部,将配置更改为所有配置。

  8. 从左侧的树中选择链接器-> 输入。

  9. 在右侧窗格的 Addititonal Dependencies 中,在末尾添加“;freeglut.lib”,如果使用 glew,还添加“;glew32.lib”。

  10. 单击确定并从调试菜单中选择构建解决方案

  11. 按 Ctrl+F5 运行程序

但最后我面临这个错误:

错误 1 ​​错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 2 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 3 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 4 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 5 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 6 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 7 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 8 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

错误 9 错误 C1189:#error:使用 /MD[d](CRT dll 版本)构建 MFC 应用程序需要 MFC 共享 dll 版本。请#define _AFXDLL 或不要使用 /MD[d] E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afx.h 25 1 TestOpenGL

你能帮我解决这个问题吗?

4

0 回答 0