xcode-select --print-path
You may need to change this to your Xcode installation if you separately installed the command line tools and that is the issue:
xcode-select -switch /Applications/Xcode.app
Try also building with clang++ instead of clang. This was causing a linking issue for me.
Topic:
App & System Services
SubTopic:
Core OS
Tags: