PlaySound in Eclipse
How I can open a .wav without this error: "undefined reference to `PlaySoundA@12'"?
1 2 3 4 5 6 7 8 9
|
void ventoinhaligar(portaSerial *p) {
p->enviaSerial(3);
cout << "Tocando Alerta" << endl;
PlaySound(TEXT("beep-02.wav"), NULL, SND_SYNC);
Sleep(1500);
ventoinha = true;
cout << "Ventilação Ligada" << endl;
}
|
Last edited on
Thank you!
I needed to add library winmm to Eclipse.
Topic archived. No new replies allowed.