[MacPorts] #70750: C++ headers are not found after updating to CLTs version 16.0
MacPorts
noreply at macports.org
Tue Sep 24 06:53:46 UTC 2024
#70750: C++ headers are not found after updating to CLTs version 16.0
-----------------------+----------------------------
Reporter: SaintBol | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: sequoia sonoma
Port: |
-----------------------+----------------------------
Comment (by lcvisser):
Replying to [comment:91 jmroot]:
> Replying to [comment:88 lcvisser]:
> > The strange thing is (or at least, the part I don't understand): I can
build C++ applications just fine. The sample provided in comment:75
compiles without error, so does all my normal work (although I use CMake,
which may set some paths differently).
>
> As your `clang --version` output shows, you are using Xcode, not the
CLTs. If you `export DEVELOPER_DIR=/Library/Developer/CommandLineTools`
before trying the example, you should reproduce the issue. This happens
because /usr/bin/clang is a shim that finds and runs the real compiler
based on your settings.
Ah, yes, you're right. With the DEVELOPER_DIR I can reproduce it with the
example. Thanks!
--
Ticket URL: <https://trac.macports.org/ticket/70750#comment:92>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list