-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi everyone,
I would love to create an Apple Silicon MacOS release for CWC25, but I'm running into some compilation errors. Given my very limited Mac experience, I would love any help that you all could provide.
First, I tried executing the following command within my root folder on a relatively recent MacBook Air (with an Apple Silicon chip):
clang++ cpp_world_clock.cpp -o build/cwc25 --std=c++20
This produced the following error:
cpp_world_clock.cpp:144:16: error: no type named 'zoned_time' in namespace 'std::chrono' 144 | std::chrono::zoned_time tz_time{tz_string, current_time};
It looks like Clang doesn't yet offer support for zoned_time().
Therefore, I tried using GCC version 15.2 instead. I used HomeBrew to download GCC, then ran the following code: (I used gcc-15 rather than gcc because the latter caused Clang to get used for the build attempt.)
gcc-15 cpp_world_clock.cpp -o build/cwc25 --std=c++20
This produced the following error:
fatal error: _bounds.h: No such file or directory 78 | #include <_bounds.h>
A quick search suggests that this might be an issue with HomeBrew's GCC build.
I imagine that I'll eventually be able to build the program using Clang once it receives support for zoned_time(); however, I would like to release an executable version earlier than that if possible. Please let me know if you have any suggestions!