1

I am trying to make a command line application to get the system volume. I copied the code from here: https://gist.github.com/rdp/8363580 However, it won't build. The line that says "#include ", there is an error saying "Unresolved inclusion: ".

I am using MinGW and Eclipse.

R. Quam
  • 13
  • 5
  • I have a file `mmdeviceapi.h` in my mingw `include` directory. Can you check if that file exists in yours? Maybe you have an old mingw release? – rodrigo Sep 06 '15 at 23:27
  • @rodrigo Nope, no idea why. I just got mingw two days ago... – R. Quam Sep 06 '15 at 23:32
  • 2
    There are a few old mingw releases out there, maybe you have one of them. I recommend [MinGW-w64](http://mingw-w64.org/) (not just for 64-bits). – rodrigo Sep 06 '15 at 23:33
  • Well, I ran the executable... Not sure what to do now that I have two mingw installations... – R. Quam Sep 06 '15 at 23:46
  • Probably in Eclipse there are some options to select the compiler to be used. Or maybe you just configure the system `PATH`? – rodrigo Sep 06 '15 at 23:47
  • Aha! Thank you so much! – R. Quam Sep 06 '15 at 23:53

0 Answers0