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:
Code:
#include<windows.h>
#include<mmsystem.h>
int main()
{
 mixerGetNumDevs();   
}
Which comes with the corresponding error: "undefined reference to mixerGetNumDevs@0"

Exact command used to compile:
Code:
gcc.exe -o winmmtest.exe -lwinmm winmmtest.c
Any ideas as to the source of this problem are greatly appreciated. Thanks in advance.