what am i diong wrong here?Code:#include <iostream> #include <windows.h> #include <conio.h> using namespace std; int main() { int i; //char *prt = "C:\\WINDOWS\\Media\\chord.wav"; cout << "test"; do { i = getch(); if ( i == 13) { PlaySound("chord.wav", NULL, SND_ALIAS); } }while(1); return 0; }
here are the linker errors im geting
Linking...
Text1.obj : error LNK2001: unresolved external symbol __imp__PlaySoundA@12
Debug/Text1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.