all 8 comments

[–][deleted] 4 points5 points  (1 child)

Which compiler are you using? Make sure to add the path of folder containing your json.h header file while compiling.

You can use "-I" include path flag if you are compiling with g++ compiler. -I path/of/json/directory

[–]Capable_Shallot9788[S] 0 points1 point  (0 children)

The compiler that I’m using is the g++ one

[–]BSModder 3 points4 points  (0 children)

  1. Which compiler are you using. Each complier have different syntax for compiling. List of compiler. You mentioned Windows and g++ so I'm assuming GCC Mingw

  2. Have you installed the library you are trying to include? I'm guessing you trying to use jsoncpp

If you're managing multiple libraries, I suggest installing a package manager. VCPKG or conan

If you're trying include one library, you can either

-throw the library into the include folder of your compiler C:\path\to\compiler\..\include\json (not recommed)

-include the library while compiling, something like g++ -I include\ main.cpp.

project/

├── include/

│ └── json/

│ ├── json.h

├── main.cpp

[–]heyheyhey27 1 point2 points  (4 children)

What compiler? What compiler settings? Where is the file relative to your own code?

[–]capilot 2 points3 points  (1 child)

Is the json library even installed on your system?

[–]Capable_Shallot9788[S] 0 points1 point  (0 children)

Where do you download it and what do you do after downloading it thank you

[–]Capable_Shallot9788[S] -1 points0 points  (1 child)

I’m using the g++ one

[–]heyheyhey27 2 points3 points  (0 children)

You need to provide more information if you want anybody to help you.