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...
Dear Prof. Jiang, I also encountered this problem (on Mojave). I found that from OSX 10.14, 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...