播放声音c++[错误]
我在学习播放声音老是出现类似于[Error] ld returned 1 exit status这种提示!!!请大神指教!源代码:
#include<iostream>
#include<windows.h>
#include<Mmsystem.h>
#pragma comment(lib,"mm.lib")
using namespace std;
int main()
{
PlaySound(TEXT("E:\\Better now.mp3"),NULL,SND_FILENAME | SND_ASYNC);
cin.get();
cin.get();
}