游戏开发论坛

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

出现如下错误是.lib 文件没有添加么?

[复制链接]

7

主题

27

帖子

27

积分

注册会员

Rank: 2

积分
27
发表于 2009-6-5 22:35:00 | 显示全部楼层 |阅读模式
Linking...
the game.obj : error LNK2001: unresolved external symbol "public: void __thiscall Sprite::MoveTo(double,double)" (?MoveTo@Sprite@@QAEXNN@Z)
the game.obj : error LNK2001: unresolved external symbol "class Sprite * sprite" (?sprite@@3PAVSprite@@A)
the game.obj : error LNK2001: unresolved external symbol "public: __thiscall Sprite::Sprite(int,int)" (??0Sprite@@QAE@HH@Z)
the game.obj : error LNK2001: unresolved external symbol _DDSetColorKey
the game.obj : error LNK2001: unresolved external symbol _DDReLoadBitmap
the game.obj : error LNK2001: unresolved external symbol "public: void __thiscall Sprite::show(void)" (?show@Sprite@@QAEXXZ)
Debug/the game.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.

我已经添加ddraw.lib dsound.lib winmm.lib
还出现这个错误,谁帮帮解答下,谢谢

34

主题

657

帖子

672

积分

高级会员

Rank: 4

积分
672
发表于 2009-6-6 15:04:00 | 显示全部楼层

Re:出现如下错误是.lib 文件没有添加么?

跟其它库有关系,程序是你做的还是下载的?

7

主题

27

帖子

27

积分

注册会员

Rank: 2

积分
27
 楼主| 发表于 2009-6-7 02:39:00 | 显示全部楼层

Re:出现如下错误是.lib 文件没有添加么?

这个问题解决了,是少添加了ddutil.cpp文件的问题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-12-20 01:22

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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