Where can I find mach_host.h
library for mac OS X?
Because i can't find it on the web.
I read the answer in this thread by Michael Taylor in which mach_host.h
library is used.
Asked
Active
Viewed 439 times
0

Community
- 1
- 1

Ilmionome456
- 137
- 6
-
Ummmmm [Here](http://web.mit.edu/netbsd/src/sys/compat/mach/mach_host.h) – Fantastic Mr Fox Nov 18 '15 at 19:56
-
`find /usr -name mach_host.h`, maybe? – R Sahu Nov 18 '15 at 20:40
1 Answers
1
If you want to do software development under OSX, you need to go to the AppStore and install Xcode
from Apple. That will have all the headers, libraries, compiler and linker and tools.
If you want to find that header file, you can then use this command:
find /Applications -name mach_host.h
There will be several answers, some for WatchOS, some for iOS and some for OSX. You need this one:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/mach/mach_host.h

Mark Setchell
- 191,897
- 31
- 273
- 432