I would like to use mciSendString from gcc to build a dll so I need to link to the winmm.dll library.
I tried something like this:
gcc -c -o dllTest.o dllTest.c -lC:\Windows\System32\winmm.dll
But when i tried to build the dll I get an undefined reference for mciSendString.
What is the proper way to link to winmm from gcc?
In the end I was able to get it to work with -lwinmm instead of the big path to the library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With