error LNK2019: 无法解析的外部符号 "__declspec(dllimport) class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl RdKafka::err2str(enum RdKafka::ErrorCode)" (__imp_?err2str@RdKafka@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4ErrorCode@1@@Z),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl RdKafka::DeliveryReportCb::~DeliveryReportCb(void)" (__imp_??1DeliveryReportCb@RdKafka@@UEAA@XZ),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl RdKafka::DeliveryReportCb::DeliveryReportCb(void)" (__imp_??0DeliveryReportCb@RdKafka@@QEAA@XZ),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl RdKafka::PartitionerCb::~PartitionerCb(void)" (__imp_??1PartitionerCb@RdKafka@@UEAA@XZ),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl RdKafka::PartitionerCb::PartitionerCb(void)" (__imp_??0PartitionerCb@RdKafka@@QEAA@XZ),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __cdecl RdKafka::EventCb::~EventCb(void)" (__imp_??1EventCb@RdKafka@@UEAA@XZ),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl RdKafka::EventCb::EventCb(void)" (__imp_??0EventCb@RdKafka@@QEAA@XZ),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class RdKafka::Conf * __cdecl RdKafka::Conf::create(enum RdKafka::Conf::ConfType)" (__imp_?create@Conf@RdKafka@@SAPEAV12@W4ConfType@12@@Z),该符号在函数
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static class RdKafka::Producer * __cdecl RdKafka::Producer::create(class RdKafka::Conf *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" (__imp_?create@Producer@RdKafka@@SAPEAV12@PEAVConf@2@AEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),
error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: static int const RdKafka::Topic::PARTITION_UA" (__imp_?PARTITION_UA@Topic@RdKafka@@2HB)
看着项目配置好像都没错,但就是编译不过,最后对比其他项目文件之后发现,还有个宏定义没配
LIBRDKAFKA_STATICLIB
|