我承认,这个问题有点俗气,但还是想问!
- C/C++ code
FlyGameSound.obj : error LNK2019: 无法解析的外部符号 __imp__mciSendCommandA@16,该符号在函数 "private: unsigned long __thiscall CFlyGameSound::getinfo(unsigned long)" (?getinfo@CFlyGameSound@@AAEKK@Z) 中被引用FlyGameSound.obj : error LNK2019: 无法解析的外部符号 __imp__PlaySoundA@12,该符号在函数 "public: int __thiscall CFlyGameSound::PlaySounds(unsigned int,unsigned short)" (?PlaySounds@CFlyGameSound@@QAEHIG@Z) 中被引用GameClientView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall TransButton::~TransButton(void)" (__imp_??1TransButton@@UAE@XZ),该符号在函数 __unwindfunclet$??0CGameClientView@@QAE@XZ$0 中被引用GameClientView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall TransButton::TransButton(void)" (__imp_??0TransButton@@QAE@XZ),该符号在函数 "public: __thiscall CGameClientView::CGameClientView(void)" (??0CGameClientView@@QAE@XZ) 中被引用GameClientView.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: bool __thiscall TransButton::SetButtonImage(unsigned int,struct HINSTANCE__ *,bool)" (__imp_?SetButtonImage@TransButton@@QAE_NIPAUHINSTANCE__@@_N@Z),该符号在函数 "protected: int __thiscall CGameClientView::OnCreate(struct tagCREATESTRUCTA *)" (?OnCreate@CGameClientView@@IAEHPAUtagCREATESTRUCTA@@@Z) 中被引用
我承认这问题有点俗气,可我就是不知道怎么解决!!!!
这里的函数都实现了,而且我也加了#pragma comment(lib,"Wininet.lib")
但是还是失败。
[解决办法]
应该是你的某个动态库或是静态库的路径设置错误了,你比较下你DEBUG和RELEASE的库的路径