欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

JSONCPP to Visual Studio

程序员文章站 2022-10-05 16:26:24
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.

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