Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JSONCPP to Visual Studio

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.

like image 325
blakepeterman Avatar asked Sep 29 '22 11:09

blakepeterman


1 Answers

To 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).

like image 160
Key Avatar answered Nov 02 '22 10:11

Key