Help with UsingTheRightCompiler
Ken Cunningham
ken.cunningham.webuse at gmail.com
Fri Jul 24 04:38:49 UTC 2020
> You have to use clang++ if you are calling in c++ includes.
>
> Then it will work.
Having read over the other comments, and in case that wan’t clear — if you use /usr/bin/clang++ your build will automatically find the c++ includes, and you don’t need to do any of those suggestions with -isysroot or SDKROOT or xcrun etc.
It is presently failing because /usr/bin/clang does not automatically add the search path for the c++ includes, and <algorithm> is only in the c++ includes, not in the c includes.
K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20200723/1a721894/attachment.htm>
More information about the macports-dev
mailing list