I am having some trouble getting the JSONCPP Library into Visual Studio. I have downloaded the library I am just unsure how to import it into my proje ...
I am having some trouble getting the JSONCPP Library into Visual Studio.
I have downloaded the library I am just unsure how to import it into my project and use it in my c++ code.
c++ visual-studio-2013 jsoncpp shareimprove this question asked Nov 5 '14 at 22:47 blakepeterman 88311 show 3 more comments1 Answer
activeoldestvotes up vote1down voteTo fix the error "cannot open include file: 'json/json.h' no such file or directory", you need to add Include directory to your project as following:
-Right click on your project -> Properties. Under C/C++ ->General ->Additional Include Directories, add C:\your-directory-to-jsoncpp-master\include (e.g. C:\user1\jsoncpp-master\include).
Add->Existing Item
in VS). After that all you need to do is include the header wherever you want to use jsoncpp. – Cameron Nov 5 '14 at 23:06