Discussion:
[Dev-C++] linker error -- undefined reference to 'PlaySoundA@12'
Insaciable Mr. K
2003-03-03 20:02:55 UTC
Permalink
thats basicaly the jist of it, i cant get rid of that error, i have winmm.lib in my library files, and have mmsystem.h included along withthe other nesesary files included,

heres the call to the playsound function i have, although it is the same format another person used and worked for them.

PlaySound("beam.wav", NULL, SND_FILENAME | SND_SYNC);

for the life of me i cannot figure this out, and it has stumped many a person, please help!
Matthews
2003-03-04 10:35:15 UTC
Permalink
The way you phrased it makes me believe that you're missing a -lwinmm in
your linker options.
thats basicaly the jist of it, i cant get rid of that error, i have
winmm.lib in my library files, and have mmsystem.h included along withthe
other nesesary files included, heres the call to the playsound function
i have, although it is the same format another person used and worked for
them. PlaySound("beam.wav", NULL, SND_FILENAME | SND_SYNC); for the
life of me i cannot figure this out, and it has stumped many a person,
please help!
Loading...