游戏开发论坛

 找回密码
 立即注册
搜索
查看: 2748|回复: 2

OpenGL链接错误

[复制链接]

2

主题

5

帖子

9

积分

新手上路

Rank: 1

积分
9
发表于 2007-4-10 23:44:00 | 显示全部楼层 |阅读模式
用NeHe,编译没问题,链接的时候出错,附加包含目录和附加库目录都己经设置过了。
错误信息如下:
NeHeMain.obj : error LNK2019: 无法解析的外部符号 "public: void __thiscall NeHe::OpenGL::KillGLWindow(void)" (?KillGLWindow@OpenGL@NeHe@@QAEXXZ),该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall NeHe::OpenGL:rawGLScene(void)" (?DrawGLScene@OpenGL@NeHe@@QAE_NXZ),该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 "public: bool __thiscall NeHe::OpenGL::CreateGLWindow(char *,int,int,int,bool)" (?CreateGLWindow@OpenGL@NeHe@@QAE_NPADHHH_N@Z),该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall NeHe::OpenGL::~OpenGL(void)" (??1OpenGL@NeHe@@QAE@XZ),该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 _DoSplash,该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall NeHe::OpenGL::OpenGL(void)" (??0OpenGL@NeHe@@QAE@XZ),该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 __RTC_CheckEsp,该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2019: 无法解析的外部符号 @_RTC_CheckStackVars@8,该符号在函数 _WinMain@16 中被引用
NeHeMain.obj : error LNK2001: 无法解析的外部符号 __RTC_Shutdown
NeHeMain.obj : error LNK2001: 无法解析的外部符号 __RTC_InitBase
NeHeMain.obj : error LNK2019: 无法解析的外部符号 "private: void __thiscall NeHe::Window::DoMessaging(void)" (?DoMessaging@Window@NeHe@@AAEXXZ),该符号在函数 "public: bool __thiscall NeHe::Window::GetKey(int)" (?GetKey@Window@NeHe@@QAE_NH@Z) 中被引用
LINK : error LNK2001: 无法解析的外部符号 _WinMainCRTStartup
=======================================================================
系统环境:WIN2000,VS2005

180

主题

3511

帖子

3520

积分

论坛元老

Rank: 8Rank: 8

积分
3520
发表于 2007-4-11 12:49:00 | 显示全部楼层

Re:OpenGL链接错误

无法解析的外部符号 "public: void __thiscall NeHe::OpenGL::KillGLWindow(void)"

说明你没有调用 NeHe这个块儿,和 NeHe里面的OpenGL这个块儿。

2

主题

5

帖子

9

积分

新手上路

Rank: 1

积分
9
 楼主| 发表于 2007-4-11 15:35:00 | 显示全部楼层

Re:OpenGL链接错误

没有调用?什么意思?库目录己设置过了。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2026-4-13 00:45

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表