我要发帖 回复

正式会员

20

主题

81

积分

0

专家分

:

私信
发表时间 : 2007-12-20 23:05:34 | 浏览 : 1227    评论 : 2
在运行华中科技大学那本书上最后综合的例子(飞机打坦克那个),在生成可执行文件时出错,大家帮忙看一下。出错提示如下:Linking...
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glEnable@4]__imp__glEnable@4[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glLoadMatrixf@4]__imp__glLoadMatrixf@4[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glColor3ub@12]__imp__glColor3ub@12[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=_gluOrtho2D@32]_gluOrtho2D@32[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glLoadIdentity@0]__imp__glLoadIdentity@0[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glGetFloatv@8]__imp__glGetFloatv@8[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glMatrixMode@4]__imp__glMatrixMode@4[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glGetIntegerv@8]__imp__glGetIntegerv@8[/email]
Demo.obj : error LNK2001: unresolved external symbol [email=__imp__glDisable@4]__imp__glDisable@4[/email]
Debug/Demo.exe : fatal error LNK1120: 9 unresolved externals
Error executing link.exe.
Demo.exe - 10 error(s), 0 warning(s)
另外此段程序p312的 case‘’:代表是空格键吗

最近VR访客

yangwang21 评论于2007-12-20 23:23:33
参考网页:
http://www.sogou.com/websnapshot ... id=1&w=01020400
在projects菜单的setting--〉link-->objects/library   modules中加入opengl的连接库
OpenGL32.lib   GLu32.lib   GLaux.lib后,编译通过了,但不知下来会怎样
yangwang21 评论于2007-12-21 12:05:22

但执行程序时提示如下,怎么回事啊?网上一个帮助也搜不到

warn:jsLoadImage_int:D:\    \Vega\Sample|Data|Vega\grand.int is not .init file,3 components found  
warn:Unimplemented repeat mode defaulted to repeat
warn:jsGeom:Tristrip or trifan primitive 0 has only 0 vertices

手机版|VR开发网 统计 津ICP备18009691号
网安备12019202000257

GMT+8, 2021-9-18 07:29 AM

返回顶部