小编Mic*_*mer的帖子

jsoncpp链接错误cmake

我是 cmake 的新手。它工作得很好,但现在我遇到一些链接错误:

undefined reference to `Json::Reader::Reader()'
undefined reference to `Json::Value::Value(Json::ValueType)'
undefined reference to `Json::Reader::parse(std::basic_istream<char, std::char_traits<char> >&, Json::Value&, bool)'
undefined reference to `google::protobuf::MessageLite::ParseFromArray(void const*, int)'
Run Code Online (Sandbox Code Playgroud)

还有更多这样的类型。

我想我必须在某个地方添加 jsoncpp 库。

这里有人知道如何做到这一点吗?

c++ eclipse cmake linker-errors jsoncpp

2
推荐指数
1
解决办法
3639
查看次数

标签 统计

c++ ×1

cmake ×1

eclipse ×1

jsoncpp ×1

linker-errors ×1