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

Can't build on Visual Studio 2017 v15.8.9 #1350

Closed
TransientResponse opened this issue Nov 12, 2018 · 1 comment
Closed

Can't build on Visual Studio 2017 v15.8.9 #1350

TransientResponse opened this issue Nov 12, 2018 · 1 comment

Comments

@TransientResponse
Copy link

  • What is the issue you have?
    Can't build project using json.hpp standalone or with vcpkg on Windows x64 with VS 2017 15.8.9

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?
    Try to build any project with #include "json.hpp"

  • What is the expected behavior?
    Build without errors

  • And what is the actual behavior instead?
    Build fails with these errors:

1>c:\users\[path]\json.hpp(918): error C2628: 'size_t' followed by 'unsigned' is illegal (did you forget a ';'?)
1>c:\users\[path]\json.hpp(918): error C2628: 'size_t' followed by 'char' is illegal (did you forget a ';'?)
1>c:\users\[path]\json.hpp(918): error C2886: 'size_t': symbol cannot be used in a member using-declaration
1>c:\users\[path]\build\src\predefined c++ types (compiler internal)(16): note: see declaration of 'size_t'
1>c:\users\[path]\json.hpp(921): error C2059: syntax error: 'type'
1>c:\users\[path]\json.hpp(11445): error C2628: 'uint8_t' followed by 'unsigned' is illegal (did you forget a ';'?)
1>c:\users\[path]\json.hpp(11501): note: see reference to class template instantiation 'nlohmann::detail::serializer<BasicJsonType>' being compiled
1>c:\users\[path]\json.hpp(11445): error C2628: 'uint8_t' followed by 'char' is illegal (did you forget a ';'?)
1>c:\users\[path]\json.hpp(11072): error C2760: syntax error: unexpected token 'char', expected 'type specifier'
1>c:\users\[path]\json.hpp(11467): error C2760: syntax error: unexpected token 'unsigned', expected 'expression'
  • Which compiler and operating system are you using? Is it a supported compiler?
    Visual Studio 2017 v15.8.9 on Windows 10 1803
    Visual C++ 2017 00369-60000-00001-AA083

  • Did you use a released version of the library or the version from the develop branch?
    Released v3.3.0 and vcpkg's 3.2.0

  • If you experience a compilation error: can you compile and run the unit tests?
    Instructions incomplete, I only get "test not available in configuration [*]" for anything I try in ctest.

@TransientResponse
Copy link
Author

Nevermind, I had a define breaking things

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