[转]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

原文地址:https://www.cnblogs.com/live41/p/3054393.html