Skip to content
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

error: no member named 'setlocale' in namespace 'std' #120

Open
PikachuHy opened this issue Mar 19, 2022 · 0 comments
Open

error: no member named 'setlocale' in namespace 'std' #120

PikachuHy opened this issue Mar 19, 2022 · 0 comments

Comments

@PikachuHy
Copy link
Contributor

PikachuHy commented Mar 19, 2022

when I install notekit from brew

brew install --HEAD sp1ritCS/tap/notekit

detail

==> Installing notekit from sp1ritcs/tap
==> Patching
==> Applying Apple/llvm.patch
patching file main.cpp
patching file meson.build
==> meson --prefix=/usr/local/Cellar/notekit/HEAD-57d7253 --libdir=/usr/local/Cellar/notekit/HEAD-57d7253/lib --buildtyp
==> ninja -v
Last 15 lines from /Users/pikachu/Library/Logs/Homebrew/notekit/02.ninja:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/c++/v1/__functional/not_fn.h:38:36: note: candidate template ignored: substitution failure [with _Fn = int (int)]: no member named '_EnableIfImpl' in 'std::_MetaBase<false>'
_LIBCPP_CONSTEXPR_AFTER_CXX17 auto not_fn(_Fn&& __f)
                                   ^
../mainwindow.cpp:17:2: error: no member named 'setlocale' in namespace 'std'; did you mean simply 'setlocale'?
        std::setlocale(LC_NUMERIC, "C"); // workaround for old jsoncpp on German (decimal comma) systems
        ^~~~~~~~~~~~~~
        setlocale
/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/locale.h:53:8: note: 'setlocale' declared here
char            *setlocale(int, const char *);
                 ^
3 errors generated.

my env is macOS Monterey 12.3

blackhole89 pushed a commit that referenced this issue Apr 18, 2022
* ignore cmake-build-debug and cmake-build-Release

* ignore .idea

* fix error: no member named 'setlocale' in namespace 'std'

#120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant