MFC用OpenGL在picturecontrol上画图时: error LNK2019: 无法解析的外部符号
1>------ 已启动生成: 项目: 3D, 配置: Debug Win32 ------
1> stdafx.cpp
1> 3DDlg.cpp
1> 3D.cpp
1> 正在生成代码...
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__wglCreateContext@4,该符号在函数 "public: virtual int __thiscall CMy3DDlg::InitializeOpenGL(void)" (?InitializeOpenGL@CMy3DDlg@@UAEHXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__wglMakeCurrent@8,该符号在函数 "public: virtual int __thiscall CMy3DDlg::InitializeOpenGL(void)" (?InitializeOpenGL@CMy3DDlg@@UAEHXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glBegin@4,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glClear@4,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glClearColor@16,该符号在函数 "public: virtual int __thiscall CMy3DDlg::InitializeOpenGL(void)" (?InitializeOpenGL@CMy3DDlg@@UAEHXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glClearDepth@8,该符号在函数 "public: virtual int __thiscall CMy3DDlg::InitializeOpenGL(void)" (?InitializeOpenGL@CMy3DDlg@@UAEHXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glColor3f@12,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glEnable@4,该符号在函数 "public: virtual int __thiscall CMy3DDlg::InitializeOpenGL(void)" (?InitializeOpenGL@CMy3DDlg@@UAEHXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glEnd@0,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glFinish@0,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glLoadIdentity@0,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glMatrixMode@4,该符号在函数 "protected: void __thiscall CMy3DDlg::GetSize(void)" (?GetSize@CMy3DDlg@@IAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glRotatef@16,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glTranslatef@12,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glVertex3f@12,该符号在函数 "public: void __thiscall CMy3DDlg::OnBnClickedButton2(void)" (?OnBnClickedButton2@CMy3DDlg@@QAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 __imp__glViewport@16,该符号在函数 "protected: void __thiscall CMy3DDlg::GetSize(void)" (?GetSize@CMy3DDlg@@IAEXXZ) 中被引用
1>3DDlg.obj : error LNK2019: 无法解析的外部符号 _gluPerspective@32,该符号在函数 "protected: void __thiscall CMy3DDlg::GetSize(void)" (?GetSize@CMy3DDlg@@IAEXXZ) 中被引用
1>D:\VS2012项目\3D\Debug\3D.exe : fatal error LNK1120: 17 个无法解析的外部命令
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========