默认情况下,再Mac OSX 10.9中XCode SDK中不包括X11得头文件,如果用到则需要稍微改动一下。
X11位于目录:
/opt/local/include/X11
在XCode SDK中为X11加个替身:
sudo ln -s /opt/local/include/X11 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/
替身,在Mac OSX下是相当有用。