Dev-C++ problem

Started by
5 comments, last by whiz_kid 20 years, 5 months ago
Whenever I try to use the PlaySound() function in dev-c++, an error occurs. ''undefined reference to PlaySoundA@12''
--------------------------------A man of few words does not mean he does not have big ideas
Advertisement
do you have the header file for that funtion called?

RanBlade
"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...Passion is where great games come from, if you dont live and breathe games you shouldn''t be in the games industry." - Dave Pottinger, Ensemble Studios

Eric Ranaldi a.k.a RanBlade


[size=1]"Passion is what drives you to stay up until 4am fixing that bug that hardly anyone would notice...


[size=1]Passion is where great games come from, if you dont live and breathe games you shouldn't be in the games industry."


[size=2]- Dave Pottinger, Ensemble Studios



[size=1][GameDev][C++ Page][Unity Game Engine][Panda3D Game Engine][NeHe Productions][Drunken Hyena][MSDN][Beej's Guide to Network Programming]


[size=1][FreedBSD][My Site][Gamasutra][Khan Acadamey]

Link with the Windows multimedia library (libwinmm.a).

I have the the right header file in, but it still won''t work.
--------------------------------A man of few words does not mean he does not have big ideas
You must link with .a, not .lib. Dev-C++ (ld) doesn''t support microsoft .lib files.
Add -lwinmm to the linker options.
What UberGeek said.
Chess is played by three people. Two people play the game; the third provides moral support for the pawns. The object of the game is to kill your opponent by flinging captured pieces at his head. Since the only piece that can be killed is a pawn, the two armies agree to meet in a pawn-infested area (or even a pawn shop) and kill as many pawns as possible in the crossfire. If the game goes on for an hour, one player may legally attempt to gouge out the other player's eyes with his King.

This topic is closed to new replies.

Advertisement