qicosmos / iguana

universal serialization engine
Apache License 2.0
1.12k stars 228 forks source link

xml.hpp内get_value()方法要定义成inline吧?要不然有多重定义的错误 #45

Open nebula0723 opened 5 years ago

nebula0723 commented 5 years ago

error LNK2005: "void __cdecl iguana::xml::detail::get_value(char const *,unsigned __int64,class std::basic_string<char,struct std::char_traits,class std::allocator > &)" (?get_value@detail@xml@iguana@@YAXPEBD_KAEAV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 已经在 xxx.obj中定义 fatal error LNK1169: [找到一个或多个多重定义的符号] 1547732819 1

qicosmos commented 5 years ago

是的,全局函数要加inline。