Closed AtomDRP closed 7 months ago
Same problem but on Windows
You don't have a compile error. You have a link error. You have only included a few of jsoncpp's headers. That's insufficient.
You have to install the whole library, and link your program to it. This is not a jsoncpp bug.
You just need some more experience with the idioms for using C++ libraries.
Describe the bug Can't get this to compile. I have the file structure
with
test.cpp
and
test.json
When I try
g++ test.cpp
, I get the following errorsTo Reproduce Steps to reproduce the behavior:
test.cpp
andtest.json
files above, tryg++ test.cpp
Expected behavior I expect this to compile without errors.
Desktop (please complete the following information):