I encounter a problem about LNK2019 when I compile my project with Visual Studio 2010. Can anyone help me? Thanks.
gspan.obj : error LNK2019: 無法解析的外部符號 “public: class std::vector,class std::allocator >,class std::allocator,class std::allocator > > > __thiscall gSpan::tokenize(class std::basic_string,class std::allocator >)” (?tokenize@gSpan@@QAE?AV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@@Z) 在函式 “private: void __thiscall gSpan::read(class std::basic_string,class std::allocator >)” (?read@gSpan@@AAEXV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 中被參考
C:\Users\cool\documents\visual studio 2010\Projects\OGSPAN\Debug\OGSPAN.exe : fatal error LNK1120: 1 個無法解析的外部符號
Please check you source code, the method
gSpan::tokenizeis not implemented. It’s called ingSpan::read. By the way,gSpan::is_minis not implemented too.You can use
dumpbin.exeto examine the generatedgspan.obj. All othergSpan::methods are defined inSECT??(where??is two hex digits I think) sections, WhilegSpan::tokenizeandgSpan::is_minareUNDEF.To recreate the error, use this code: