June 7th, 2009, 04:56 PM
Problems linking with Winmm
I'm using GCC with the included libwinmm.a library, and including windows.h and mmsystem.h. I compile it with the -lwinmm parameter, but I still get the error "Undefined reference to '<functionname>'" for every time that I've used a Winmm function. For example, this very simple program will generate a linker error:
Which comes with the corresponding error: "undefined reference to mixerGetNumDevs@0"
Exact command used to compile:
Any ideas as to the source of this problem are greatly appreciated. Thanks in advance.
gcc.exe -o winmmtest.exe -lwinmm winmmtest.c
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!