-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Building with Visual Studio 2019 #1619
Comments
Did you switch on C++11 support? The library compiles fine with Visual Studio 2015 and 2017: https://ci.appveyor.com/project/nlohmann/json |
@Loris156: As nlohmann said this is likely to be caused by compiler mis-configuration. Did you be able to fix it? If not, can you give the exact configuration that lead to this problem? I have VS2019 and try to reproduce it. P.S. Appveyor has planned to add support for VS2019 and its draft/testing images is already available. Hopefully we can add VS2019 builds to CI soon. |
Fixed it, it was a file encoding issue, thank you both for helping me |
How exactly did you fix this issue? Since I'm having the same problem with VS2019 |
I'm having the same issue - what does "file encoding issue" mean? I've copied/pasted 3.7.0 from the release folder. edit: To be clear, I've opened up the source file in Git, as raw, then selected all the text and pasted into an open file ( However, downloading the file and then copying that file (with the hpp extension) works fine. So ... some weird code page issue in Git? |
Is anyone able to use the library with Visual Studio 2019?
Use the single include header with a Visual Studio 2019 project. Just including it yields about 1500 errors.
Describe what you tried.
Adding
json.hpp
to my projectDescribe which system (OS, compiler) you are using.
Windows 10 Build 17763, VS 16.1.1, Microsoft (R) C/C++ Optimizing Compiler Version 19.21.27702.2 for x86
Describe which version of the library you are using (release version, develop branch).
Latest release, version 3.6.1
The text was updated successfully, but these errors were encountered: