How do I resolve the following linker error w.r.t jsoncpp operator=.
I create a Json::Value
object like this
Json::Value pt;
pt["type"] = 5;
pt["uuid"] = "f8c74622-d45e-4cfa-fe00-5e7042431c72";
pt["start frame"] = 10;
pt["duration"] = 20;
pt["payload"] = "aedddefffsadf";
This gives the following linker error when I try to link against the default libjsoncpp-dev shipped with Ubuntu 14.04
undefined reference to `Json::Value::operator=(Json::Value)'
extra info:
And I don't get this linker error when compiled and linked against the latest jsoncpp from GitHub.
value.h (installed by ubuntu apt) in /usr/include/jsoncpp/json has
Value &operator=( const Value &other );
and the latest jsoncpp value.h has
Value &operator=(Value other);