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

你可能感兴趣的:(extern)