-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS: -std=c++17 requires -mmacosx-version-min=10.14 #44
Comments
If you have this problem, simply change line 59 in Thanks @jbarlow83! |
Leaving a note here for posterity: Having dealt with this recently on another project, there is a fair amount of C++17 that you can get away with under
|
On macOS, it is not possible to compile with
-std=c++17
unless-mmacosx-version-min=10.14
. macOS 10.14 is Mojave, the latest version.It would be best to select
-std=c++14
on macOS since it is far more compatible with older versions. Alternately, perhaps something can be fixed in pybind11.h to improve compatibility.If macOS version is
-mmacosx-version-min=10.7
, error messages like:If macOS 10.12 (or 10.13) is selected, as suggested, errors (perhaps unintended) still appear:
The text was updated successfully, but these errors were encountered: