Open utilitydelta opened 2 years ago
Hi,
I get this linker error if I have #include "mio/mmap.hpp" in more than one cpp file:
error LNK2005: "class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > __cdecl mio::detail::win::s_2_ws(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?s_2_ws@win@detail@mio@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@@Z) already defined in test.obj
Any ideas on what I can do to fix? Running x64 build on Win11.
Thanks! Tyson
See https://github.com/mandreyel/mio/pull/71
thanks! nice one liner :)
Hi,
I get this linker error if I have #include "mio/mmap.hpp" in more than one cpp file:
error LNK2005: "class std::basic_string<wchar_t,struct std::char_traits,class std::allocator > __cdecl mio::detail::win::s_2_ws(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (?s_2_ws@win@detail@mio@@YA?AV?$basic_string@_WU?$char_traits@_W@std@@V?$allocator@_W@2@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@@Z) already defined in test.obj
Any ideas on what I can do to fix? Running x64 build on Win11.
Thanks! Tyson