[转]unresolved external symbol __imp__PlaySoundA@12的解决方法

方法一:

在源代码开头加入这两行:

#include <mmsystem.h>

#pragma comment(lib,"winmm.lib")

 

方法二:

VC6: Project -> Settings -> Link -> Project Options -> 加入winmm.lib

VS2008/2010/2012:

Project -> Properties -> Linker -> Input -> Additional Dependencies -> 加入winmm.lib

posted @ 2013-05-02 12:08  Clotho_Lee  阅读(4034)  评论(0编辑  收藏  举报