好友
阅读权限10
听众
最后登录1970-1-1
|
jtwc
发表于 2023-5-29 17:46
CustomMdSpi.cpp源码:
std::string instrumentKey = std::string(pDepthMarketData->InstrumentID);
if (g_KlineHash.find(instrumentKey) == g_KlineHash.end())
g_KlineHash[instrumentKey] = TickToKlineHelper();
g_KlineHash[instrumentKey].KLineFromRealtimeData(pDepthMarketData);
中出错如下:错误 1 error LNK2001: 无法解析的外部符号 "class std::unordered_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class TickToKlineHelper,struct std::hash<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,struct std::equal_to<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,class TickToKlineHelper> > > g_KlineHash" (?g_KlineHash@@3V?$unordered_map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VTickToKlineHelper@@U?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@VTickToKlineHelper@@@std@@@2@@std@@A)
|
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|