Compile problem on Sonoma 14.7 with Command Line Tools

I have problems compiling a C++ code on a new MacBook Pro, which I didn't encounter on a previous machine. The error message is as follows.

In file included from multipacting/src/genptab.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/iostream:43:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/ios:223:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__locale:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__memory/shared_ptr.h:24:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__memory/allocation_guard.h:15:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/__memory/construct_at.h:23: /Library/Developer/CommandLineTools/SDKs/MacOSX15.0.sdk/usr/include/c++/v1/new:241:14: error: no type named 'size_t' in namespace 'std'; did you mean simply 'size_t'?
operator new(std::size_t __sz, const std::nothrow_t&) _NOEXCEPT _LIBCPP_NOALIAS;
^~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/stddef.h:46:23: note: 'size_t' declared here
typedef SIZE_TYPE size_t;
^

Answered by nckwcq in 806724022

Found the following in an old compilation

warning: 'finite' is deprecated: first deprecated in macOS 10.9 - Use isfinite((double)x) instead. [-Wdeprecated-declarations]

Changing finite to isfinite from std solved the problem.

Thanks for your attention.

Accepted Answer

Found the following in an old compilation

warning: 'finite' is deprecated: first deprecated in macOS 10.9 - Use isfinite((double)x) instead. [-Wdeprecated-declarations]

Changing finite to isfinite from std solved the problem.

Thanks for your attention.

Compile problem on Sonoma 14.7 with Command Line Tools
 
 
Q