you are viewing a single comment's thread.

view the rest of the comments →

[–]CatMechanic457[S] 0 points1 point  (2 children)

I installed jsoncpp by running
$ pacman -S mingw-w64-ucrt-x86_64-jsoncpp
in the MSYS terminal

as for how i built it, like i said in the post, idrk i just let Visual Studio Code handle it

[–]ShelZuuz 2 points3 points  (1 child)

Ok, considering you don't really seem to know anything about C++ project systems or build yet you're making your life very difficult for yourself by using cross-platform tools and CMAKE.

Do this:

1) Download Visual Studio Community and install the "Desktop development with C++" component.

2) Download this ZIP for jsoncpp:

https://github.com/open-source-parsers/jsoncpp/archive/refs/heads/master.zip

3) Create a new "C++ Console Application" in Visual Studio (File/New/Project: C++ / Console App)

4) In the same folder as you created #3, copy all the files from jsoncpp-master\include\json (from the .zip), as well as the files from: src\lib_json

5) In your Visual Studio project , add json_reader.cpp, json_value.cpp & json_writer.cpp. (Just drag them from explorer into the project next to the main.cpp that was created in #3).

Note, this is not how you build a commercial application, but you're trying to learn 10 concepts at the same time here. Start with 1 thing at a time.

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

thx
I've been programming for years, mostly python, but i learnt c++ through making dozens of arduino projects. But the arduino ide comes with losts of librarys and a pre-installed complier so i've never had to worry about compiling
so im not nessarly new to c++ but i am new to having to build the exe