I've spent several hours attempting to find out as to why I cannot compile my application that uses spdlog due to several errors related to cmath having no member in its global namespace:
In file included from lib/spdlog/include/spdlog/fmt/bundled/format.h:38:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
using ::isless;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
I had initially made the assumption that this was due to Premake not finding the MacOS SDK given that the path to the sysroot was not previously declared in my script. I made sure to add it to my link options before retrying:
linkoptions
{
"-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk"
}
However, this issue still persists and I've failed to find any other issues online related to this problem both on the official wikis of premake and spdlog. Any help would be very much appreciated.