|
|
为什么程序在DEBUG模式下运行成功,而在RELEASE模式下出现如下联接错误?
(程序中用常规方法初始化了DirectDraw7和DirectInput8
(用DirectDrawCreateEx和DirectDinput8Create))
error LNK2001: 无法解析的外部符号 _c_dfDIKeyboard
game.obj : error LNK2019: 无法解析的外部符号 _DirectInput8Create@20 ,该符号在函数 "int __cdecl Game_Init(void *,int)" (?Game_Init@@YAHPAXH@Z) 中被引用
mylib.obj : error LNK2019: 无法解析的外部符号 _DirectDrawCreateEx@16 ,该符号在函数 "int __cdecl DDrawInit(int,int,int)" (?DDrawInit@@YAHHHH@Z) 中被引用
Release/mylib.exe : fatal error LNK1120: 3 个无法解析的外部命令 |
|