Ivan De Rijk - 2019-03-02

Dear Prof. Jiang,
I also encountered this problem (on Mojave). I found that from OSX 10.14 on, even after the installation of Xcode commandline tool, they still won't install the necessary C++ headers in /usr/include. Actually after installation of Xcode commadline tools (could be installed from terminal by: xcode-select --install), the headers are stored in /Library/Developer/CommandLineTools/usr/include/c++/v1
You can add a CFLAG in your ~/.bash_profile:
export CPATH=/Library/Developer/CommandLineTools/usr/include/c++/v1
so that when compilling, it could find the necessary headers. Hope this could help you.
Best
Ivan

 

Last edit: Ivan De Rijk 2019-03-02