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.

show 3 more comments

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

相关文章:

  • 2021-04-11
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-11-08
  • 2021-10-10
  • 2021-08-11
猜你喜欢
  • 2021-05-20
  • 2021-11-25
  • 2021-07-16
  • 2021-06-19
  • 2021-11-02
  • 2021-08-03
  • 2021-05-26
相关资源
相似解决方案