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

While compiling got 76 errors #1255

Closed
officefish opened this issue Sep 24, 2018 · 9 comments
Closed

While compiling got 76 errors #1255

officefish opened this issue Sep 24, 2018 · 9 comments
Labels
state: needs more info the author of the issue needs to provide more details

Comments

@officefish
Copy link

Severity Code Description Project File Line Suppression State
Error C2100 illegal indirection test-capacity json.hpp 278
Error C1903 unable to recover from previous error(s) test-capacity json.hpp 481
Error C2100 illegal indirection test-unicode json.hpp 278
Error C2100 illegal indirection test-testsuites json.hpp 278
... finally even with 76 error all of them is c2100 json.hpp 278 or c1903 json.hpp 481

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Sep 24, 2018
@nlohmann
Copy link
Owner

Which version of the library are you using? Which compiler are you using?

@officefish
Copy link
Author

I downloaded .zip right now. Seems it is last one.

@nlohmann
Copy link
Owner

Please fill the required information:

  • What is the issue you have?

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

  • What is the expected behavior?

  • And what is the actual behavior instead?

  • Which compiler and operating system are you using? Is it a supported compiler?

  • Did you use a released version of the library or the version from the develop branch?

  • If you experience a compilation error: can you compile and run the unit tests?

@officefish
Copy link
Author

Please describe the steps to reproduce the issue. Can you provide a small but working code example?I

downloaded .zip
unzip it

$ mkdir build
$ cd build
$ cmake ..
(ok created vs15 project)

cmake --build .
$ ctest --output-on-failure
(got errors)

go to vs15 open nlohmann_json.sln Run Build got the same errors

What is the expected behavior?

expected compilation with no errors and running all unit-tests

@nlohmann
Copy link
Owner

Please answer the questions above:

  • What is the actual behavior instead?

Please copy/paste the complete error messages

Please provide the concrete compiler version

@officefish
Copy link
Author

Windows 7 Home
The compiler is commonly called "Visual C++ 2015". (I am not sure, sorry rather novice in c++)

@nlohmann
Copy link
Owner

The library only works for Microsoft Visual C++ 2015 / Build Tools 14.0.25123.0 (and possibly later). Please make sure whether your version is not too old.

Furthermore, please provide details on the error messages.

@officefish
Copy link
Author

Okey, thank you. Suppose something wrong with my environment.

@nlohmann
Copy link
Owner

Do you need further assistance?

@nlohmann nlohmann closed this as completed Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

2 participants