Skip to content

'cmath' file not found

1 message · Peter Dalgaard

#
Hmm, you seem not to be running the very latest xcode CLT, but that is a good thing, because 4.5.1 is built with 16.2 which uses clang 16 like you do.

You seem to have some sort of issue with the include path. You could start by checking that you actually have the cmath include file. I have

/Library/Developer/CommandLineTools/SDKs/MacOSX15.5.sdk/usr/include/c++/v1/cmath

so you should have the same thing with 15.2. 

You might also verify that you are actually running the C++ compiler and not the C compiler. And check that you can compile a simple C++ program.

-pd