-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
lexer.hpp(1363) '_snprintf': is not a member | Visualstudio 2017 #1437
Comments
more after removing std:: from the first file
|
after patching all snprintf
|
Some header that you are including before
You can either change the include order, or put this before including
|
ooh, nice. Let me try. Was actually downgrading back to v3.0.0 |
|
let me try putting it first instead |
same problem
I made json.hpp first in all my includes |
Looks like this header is defining it: |
This seems to be a duplicate of #1408. We successfully compile the library with MSVC 2017, see https://ci.appveyor.com/project/nlohmann/json/builds/21611843/job/cyq14vhdxfa20e1v for instance. |
Yeah, darn. I had been messing with most of the files I forgot I defined it earlier in there. |
Perhaps one could do (std::snprintf)(...) if it's a common thing for snprintf to get #define'd on windows. Yes, it shouldn't be necessary, but it's robust. |
Hi, I upgraded my project to the latest json, but I can't get past this error.
I use cmake as my build system, also tried setting stdc++11 but nothing worked
D:\Programming\bak\google_driver\json\include\nlohmann/detail/input/lexer.hpp(1363): error C2039: _snprintf: is not a member of std
The text was updated successfully, but these errors were encountered: