0

I have included json.h in my project, but compiler says:

undefined reference to 'Json::Value' or 'Json::Reader'

May I need to do something else?

P̲̳x͓L̳
  • 3,615
  • 3
  • 29
  • 37
Alex
  • 11
  • 2

1 Answers1

0

Like any other library, you need to install it if you're going to use it. Try this:

  1. Clone naclports.
  2. Following the instructions in that project's README.txt, set up your development environment.
  3. make_all.sh jsoncpp

If all that succeeds, then you'll have the jsoncpp library installed on your development machine for NACL_SDK_ROOT, and something like #include <json/reader.h> will succeed.

sowbug
  • 4,644
  • 22
  • 29