undefined refrence to waveInGetNumDev
Jul 12, 2013 at 12:59pm UTC
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
Jul 12, 2013 at 1:06pm UTC
Add libwinmm.a or just winmm to linker input, not winmm.lib if you are using MinGW.
Jul 12, 2013 at 1:11pm UTC
Thanks a lot! i knew its just a detail :)
Topic archived. No new replies allowed.