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

use in visual studio 2015 #929

Closed
aria-gorzin opened this issue Jan 22, 2018 · 3 comments
Closed

use in visual studio 2015 #929

aria-gorzin opened this issue Jan 22, 2018 · 3 comments
Labels
kind: question platform: visual studio related to MSVC state: needs more info the author of the issue needs to provide more details state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated

Comments

@aria-gorzin
Copy link

aria-gorzin commented Jan 22, 2018

Hello

  • I am a beginner in c++ could anyone please give me an instruction of how to use this in visual studio 2015 step by step?
    by including the hpp file I got error

I need to know how to install this project to use it in VS15, and since I am a beginner please be patiente with me and tell me the tools, the paths, and way to install this package. I installed my visual studio in default path.
thank you

@nlohmann
Copy link
Owner

What is the error message?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Jan 22, 2018
@tdeb-embeans
Copy link

I am getting this errors :

Severity Code Description Project File Line Suppression State
Error C2338 forcing MSVC stacktrace to show which T we're talking about. facedetectionapp d:\workspace\facedetectionapp\facedetectionapp\facedetectionapp\json.hpp 1525
Error C2338 could not find to_json() method in T's namespace facedetectionapp d:\workspace\facedetectionapp\facedetectionapp\facedetectionapp\json.hpp 1519
Error C2039 'force_msvc_stacktrace': is not a member of 'papillon::PDateTime' facedetectionapp d:\workspace\facedetectionapp\facedetectionapp\facedetectionapp\json.hpp 1524
Error C2065 'force_msvc_stacktrace': undeclared identifier facedetectionapp d:\workspace\facedetectionapp\facedetectionapp\facedetectionapp\json.hpp 1524

@nlohmann
Copy link
Owner

You probably try to assign some object to a nlohmann::json value and the library does does not find a to_json function for this conversion.

Example:

MyObjectType foo;
nlohmann::json j = foo; // this line would generate the error like above

See https://github.com/nlohmann/json#arbitrary-types-conversions for more information on how to provide a to_json function.

@nlohmann nlohmann added the state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated label Feb 1, 2018
@nlohmann nlohmann closed this as completed Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question platform: visual studio related to MSVC state: needs more info the author of the issue needs to provide more details state: stale the issue has not been updated in a while and will be closed automatically soon unless it is updated
Projects
None yet
Development

No branches or pull requests

3 participants