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:
using namespace std;
devs = waveInGetNumDevs();
cout << devs << endl;
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.