游戏开发论坛

 找回密码
 立即注册
搜索
查看: 3126|回复: 3

error LNK2019急求解决方案!!!谢谢

[复制链接]

2

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
发表于 2009-8-24 19:54:00 | 显示全部楼层 |阅读模式
RAIDERS3D.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl Start_Clock(void)" (?Start_Clock@@YAKXZ) referenced in function "int __cdecl Game_Init(void *)" (?Game_Init@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl DMusic_Load_MIDI(char *)" (?DMusic_Load_MIDI@@YAHPAD@Z) referenced in function "int __cdecl Game_Init(void *)" (?Game_Init@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl DSound_Load_WAV(char *,int)" (?DSound_Load_WAV@@YAHPADH@Z) referenced in function "int __cdecl Game_Init(void *)" (?Game_Init@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl DDraw_Init(int,int,int,int)" (?DDraw_Init@@YAHHHHH@Z) referenced in function "int __cdecl Game_Init(void *)" (?Game_Init@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl Open_Error_File(char *,struct _iobuf *)" (?Open_Error_File@@YAHPADPAU_iobuf@@@Z) referenced in function "int __cdecl Game_Init(void *)" (?Game_Init@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl Draw_Clip_Line16(int,int,int,int,int,unsigned char *,int)" (?Draw_Clip_Line16@@YAHHHHHHPAEH@Z) referenced in function "void __cdecl Draw_Explosions(void)" (?Draw_Explosions@@YAXXZ)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl DMusic_Status_MIDI(int)" (?DMusic_Status_MIDI@@YAHH@Z) referenced in function "int __cdecl Game_Main(void *)" (?Game_Main@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl Draw_Text_GDI(char *,int,int,unsigned long,struct IDirectDrawSurface7 *)" (?Draw_Text_GDI@@YAHPADHHKPAUIDirectDrawSurface7@@@Z) referenced in function "int __cdecl Game_Main(void *)" (?Game_Main@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "unsigned char * __cdecl DDraw_Lock_Back_Surface(void)" (?DDraw_Lock_Back_Surface@@YAPAEXZ) referenced in function "int __cdecl Game_Main(void *)" (?Game_Main@@YAHPAX@Z)

RAIDERS3D.obj : error LNK2019: unresolved external symbol "int __cdecl DDraw_Fill_Surface(struct IDirectDrawSurface7 *,unsigned short,struct tagRECT *)" (?DDraw_Fill_Surface@@YAHPAUIDirectDrawSurface7@@GPAUtagRECT@@@Z) referenced in function "int __cdecl Game_Main(void *)" (?Game_Main@@YAHPAX@Z)
.\Debug/HLS RAIDERS3D.exe : fatal error LNK1120: 10 unresolved externals


我用的是vc2008,忙活了好几天了始终编译不成功,我该包含的库文件都包含了,请大家出出主意,谢谢(详细些)

3

主题

70

帖子

70

积分

注册会员

Rank: 2

积分
70
发表于 2009-8-25 05:41:00 | 显示全部楼层

Re:error LNK2019急求解决方案!!!谢谢

只能说你确定包含必要的库文件啦?
从报错来看,你没包含库文件。

6

主题

17

帖子

25

积分

注册会员

Rank: 2

积分
25
发表于 2009-8-25 08:10:00 | 显示全部楼层

Re:error LNK2019急求解决方案!!!谢谢

出现无法解析的外部符号有2中可能:
1:在头文件定义一个函数如void a();但是没有在相应的cpp文件中定义就会出现无法解析的外部符号,一般初学着是声明了析构函数而没有定义他。
2:当你引用了一个库文件的函数时,如果你没有包含这个库文件也会出现无法解析的外部符号。

既然你说你的库文件都包含了,那么你看看你的RAIDERS3D.h和RAIDERS3D.cpp是不是有光声明不定义的函数。

2

主题

4

帖子

0

积分

新手上路

Rank: 1

积分
0
 楼主| 发表于 2009-8-25 13:00:00 | 显示全部楼层

Re:error LNK2019急求解决方案!!!谢谢

好象没有
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-6-21 10:19

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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