I'm trying to get sound playing using wxDev-C++ but I'm failing hard. This is my attempt here:
This is the error I get:Code:#include <iostream> #include <windows.h> using namespace std; int main() { PlaySound("test.wav", NULL, SND_ASYNC | SND_FILENAME); cin.get(); return 0; }
Am I going about this wrongly? I'm certain the .wav file exists under that filename if you're thinking that.Code:[Linker Error] undefined reference to `PlaySoundA@12' ld returned 1 exit status
Thanks.