After upgrade to macOS Monterey and Xcode 13.1 my C++ projects are failing to compile. There are a lot of errors for not defined entities in various headers and a lot of linker errors for header files not found. This situation appeared after the upgrade with absolutely no changes in the codebase of my projects. Before the upgrade everything was fine and now I have more than 20 errors in one of my projects! I'm using VS Code as an IDE. Please give me advice, how to fix this issue?
Replies
Show please what kind of errors do you receive?
-
cstddef
no member named 'max_align_t' in the global namespace
stdlib.h
no member named 'ldiv' in the global namespace; did you mean 'div'?
iosfwd
use of undeclared identifier 'mbstate_t'
new
no member named 'posix_memalign' in the global namespace
no type named 'free' in the global namespace
utility
no member named '__builtin___memcpy_chk' in namespace 'std::__1'; did you mean simply '__builtin___memcpy_chk'?
time.h
missing ',' between enumerators
stdlib
unknown type name 'ldiv_t'; did you mean 'dev_t'?
wchar.h:
use of undeclared identifier 'wcschr'
use of undeclared identifier 'wcspbrk'
use of undeclared identifier 'wcsrchr'; did you mean 'wcschr'?
use of undeclared identifier 'wcsstr'; did you mean 'wcschr'?
cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'const wchar_t *'
use of undeclared identifier 'wmemchr'