[Dev-C++] PLEASE HELP: [Linker error] undefined reference to `PlaySoundA@12'
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Santiago B. <sb...@ya...> - 2003-03-18 19:35:53
|
Hi,
I'm trying to compile a very simple example from a Win32 programming book.
Somewhere in my winproc, my program goes like
"PlaySound ("c:/winnt/media/chimes.wav", NULL, SND_FILENAME | SND_ASYNC) ;"
The error I get is:
"[Linker error] undefined reference to 'PlaySoundA@12'"
It's pretty much my first Windows program (kind of "hello world!", so I
think it shouldn't be much of a problem). The source code is intended to be
compiled using VC++, wich I don't own or plan to use.
Looking through MSDN, I discovered that the PlaySound function needs
"winmm.lib" in order to compile, which I obtained by downloading the "Core
SDK" from MSDN. I added this file to my "C:\Dev-Cpp\lib" directory, and I
think that this is working because when I intentionally omit one of the
arguments the compiler is able to tell.
Anyone out there knows what might be the problem ?
Thanks
------------
¡Internet GRATIS es Yahoo! Conexión!
Usuario "yahoo", contraseña "yahoo".
Desde Buenos Aires, 4004-1010.
Otras ciudades: http://conexion.yahoo.com.ar/avanzados.html
|