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

Not able to include in visual studio code? #1188

Closed
tommy61157 opened this issue Aug 6, 2018 · 2 comments
Closed

Not able to include in visual studio code? #1188

tommy61157 opened this issue Aug 6, 2018 · 2 comments
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@tommy61157
Copy link

tommy61157 commented Aug 6, 2018

I'm currently having an issue to where visual studio code is not recognizing the include of the json.hpp file no matter what I do in the IDE, I don't admittedly know if the issue is being caused by the IDE, my own silly mistake, or by the way the json library is installed. I used linuxbrew on Ubuntu Server 16.04 LTS in order to install it, and I have the latest stable version. I'm using the g++ compiler (version 5.5 I believe)

tvnviewer_2018-08-06_07-21-31
tvnviewer_2018-08-06_07-22-03
tvnviewer_2018-08-06_07-23-48

I'm still new to this, so I included screenshots of the error it brings up along with how it is mentioned in the code in order to hopefully provide some insight as to what is going on. Feel free to ask if more information is needed. I'm using Ctrl+Shift+b in visual studio code to build it.

Edit: I also posted the question on stack overflow where I seem to be receiving some help too: https://stackoverflow.com/questions/51707031/nlohmann-json-c-include-issue/51707933?noredirect=1#comment90377076_51707933

@tommy61157
Copy link
Author

It has been solved on Stack Overflow: https://stackoverflow.com/questions/51707031/nlohmann-json-c-include-issue/

But basically, when using Visual Studio Code, you have to make sure to have an include argument in the tasks.json file for the json library for some reason, otherwise it will not pick it up.

@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Aug 6, 2018
@nlohmann
Copy link
Owner

nlohmann commented Aug 6, 2018

Thanks for checking back!

@nlohmann nlohmann closed this as completed Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants