Open lpar opened 11 months ago
On Wednesday September 27 2023 10:17:25 mathew wrote:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cstddef:46:5: error: <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. This usually means that your header search paths are not configured properly. The header search paths should contain the C++ Standard Library headers before any C Standard Library, and you are probably using compiler flags that make that not be the case. # error <cstddef> tried including <stddef.h> but didn't find libc++'s <stddef.h> header. \
This rings a bell, now if I could remember where the clapper is ... :)
It looks as if stddef.h is in
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stddef.h
rather than/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/stddef.h
i.e. Apple seem to have split the C++ headers into two locations, or stopped supporting C++ in the 14.0 SDK.
There's also a
/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk/usr/include/
which seems to include bothstring
andstddef.h
, and the name suggests it may be appropriate. Unfortunately I don't know enough about Cmake to know how to try it.