#include <stdio.h>
#include <windows.h>
#include <mmsystem.h>
#include <conio.h>
#include <iostream>
using namespace std;
#pragma comment(lib,"winmm.lib")
#include <time.h>
#define N 35
void music()
{
// 注意PlaySound只能播放没有经过压缩的wav格式的声音文件
PlaySound("d:\\ALARM1.WAV",NULL,SND_LOOP);
}
为什么编译出现这个undefined reference to [url]http://`PlaySoundA@12'[/url],应该怎么解决啊?
#include <windows.h>
#include <mmsystem.h>
#include <conio.h>
#include <iostream>
using namespace std;
#pragma comment(lib,"winmm.lib")
#include <time.h>
#define N 35
void music()
{
// 注意PlaySound只能播放没有经过压缩的wav格式的声音文件
PlaySound("d:\\ALARM1.WAV",NULL,SND_LOOP);
}
为什么编译出现这个undefined reference to [url]http://`PlaySoundA@12'[/url],应该怎么解决啊?