#include
#include
int main(void)
{
mciSendString("open\"F:\works\srkl.mp3\" alias file", NULL, 0, NULL);
mciSendString("play file", NULL, 0, NULL);
getchar();
}
编译不成功
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\86131\AppData\Local\Temp\cc6Z7VzD.o:1.c:(.text+0x36): undefined reference to `mciSendStringA@16'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\86131\AppData\Local\Temp\cc6Z7VzD.o:1.c:(.text+0x5d): undefined reference to `mciSendStringA@16'
collect2.exe: error: ld returned 1 exit status