directx错误LNK2019 c ++

时间:2015-09-07 09:47:12

标签: c++ visual-studio-2010 visual-c++ directx

我正在使用visual studio 2010,我尝试运行在Visual Studio 2005中开发的旧代码,并且我收到了与直接x库相关的错误。我无法在线找到有关directX链接错误的解决方案。

这是输出:

1> Boxes.obj:错误LNK2019:未解析的外部符号_Direct3DRMCreate @ 4在函数&#34中引用; private:void thiscall CBoxes :: CreateD3D(void)" (?CreateD3D @ CBoxes @@ AAEXXZ) 1> main.obj:错误LNK2019:未解析的外部符号_DirectDrawCreate @ 12在函数&#34中引用; int __cdecl CreateDirectDraw(struct HWND *,int,int,int,int)" (?CreateDirectDraw @@ YAHPAUHWND __ @@ HHHH @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号_DirectSoundCreate @ 12在函数&#34中引用; public:int thiscall CSound :: Create(struct HWND *)" (?创建@ CSound的@@ QAEHPAUHWND __ @@@ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioSetInfo @ 12在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioAdvance @ 12在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioGetInfo @ 12在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioAscend @ 12在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioRead @ 12在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioClose @ 8在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioDescend @ 16在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> Sound.obj:错误LNK2019:未解析的外部符号__imp__mmioOpenA @ 12在函数&#34中引用; private:int __thiscall CSound :: LoadWaveFile(char *,struct tWAVEFORMATEX * *,unsigned char * *,unsigned int *)&# 34; (?LoadWaveFile @ CSound的@@ AAEHPADPAPAUtWAVEFORMATEX @@ PAPAEPAI @ Z) 1> c:\ users \ shir \ documents \ visual studio 2010 \ Projects \ terraFly \ Debug \ terraFly.exe:致命错误LNK1120:11未解析的外部

有没有人建议如何修复它?

感谢, 桖

0 个答案:

没有答案