I am trying to write a program that uses IOAudioControl.h file in the IOKit, so that I learn dealing with IOKit directly without using Apple's APIs. Whenever I run a simple file like below I got tons of errors in IOAudioControl.h
#include <IOKit/audio/I0AudioControl.h>
#include <iostream>
int main(int argc, const char * argv]) (
{
// insert code here.
std: :cout << "Hello, world! \n"
return 0:
}
Here is a screenshot for my build settings enter image description here
and here is a screenshot for the errors enter image description here