undefined refrence to waveInGetNumDev

Hello there :)

I just decided to do an microphone capture with some windows function. Since im rather Inexperienced i decided to aim low at first with waveInGetNumDev() but it didn' t work...

heres the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
#include <windows.h>

using namespace std;

int main()
{
    int devs;
    devs = waveInGetNumDevs();
    cout << devs << endl;
    return 0;
};


The compiler tells me:

undefinded reference to 'waveInGetNumDevs@0'

I'm using Code Blocks 10.05 with windows 7 and have included the winmm.lib in linker settings.

I already googled it like all day and still found nothing.
i hope you can help me
Add libwinmm.a or just winmm to linker input, not winmm.lib if you are using MinGW.
Thanks a lot! i knew its just a detail :)
Topic archived. No new replies allowed.