我正在尝试使用 jsoncpp 的合并版本(最新版本),但它会产生未解决的外部符号链接错误。我正在使用的代码是
#include <json/json.h>
int main(){
Json::Value root;
return 0;
}
它给了我错误
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Json::Value::~Value(void)" (??1Value@Json@@QAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "public: __thiscall Json::Value::Value(enum Json::ValueType)" (??0Value@Json@@QAE@W4ValueType@1@@Z) referenced in function _main