0

this is a following question to this question

after re install libjsoncpp-dev and add #include <jsoncpp/json/json.h> i'm getting:

undefined reference to `Json::Value::every_method'

Guy Sadoun
  • 427
  • 6
  • 17
  • There are two types of libraries: Header-only libraries, which have only header files that needs to be included into your source files (with the `#include` directive); And "normal" libraries, which have header files *and* one or more library files. If you have a "normal" library you need to *link* with the library files when you build. You seem to miss the linking part. – Some programmer dude Jul 20 '22 at 10:16
  • If I read the build-files correctly for the [project](https://github.com/open-source-parsers/jsoncpp), you need to link with either `jsoncpp_lib` or `jsoncpp_static`. – Some programmer dude Jul 20 '22 at 10:17
  • can you elaborate please @Someprogrammerdude – Guy Sadoun Jul 20 '22 at 10:33

0 Answers0