Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nebula0723 opened this issue Jan 17, 2019 · 1 comment

Comments

@nebula0723
Copy link

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
Copy link
Owner

是的,全局函数要加inline。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants