I have been trying to compile a repository in OSX unsuccessfully.
The repository is in C++. When I use cmake
and then make
in Ubuntu, all is good. Even on Windows with MinGW, I am able to build the code.
However, in OSX 11.0.1 Big Sur, I get no errors with cmake
, but make
fails. I have installed the latest version of Xcode, including for the command line.
Here is the error I receive:
error:
non-constant-expression cannot be narrowed from type 'long' to
'__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing]
I have seen similar posts, but haven't been able to solve my problem yet.