4 Apr
2007
4 Apr
'07
9:33 p.m.
Hi there, there is a problem with the free flowing functions random_byte(...) and swap(...). stdafx.obj : error LNK2005: "unsigned char __cdecl boost::detail::random_byte(void)" (?random_byte@detail@boost@@YAEXZ) already defined in database.obj stdafx.obj : error LNK2005: "void __cdecl boost::swap(class boost::guid &,class boost::guid &)" (?swap@boost@@YAXAAVguid@1@0@Z) already defined in database.obj To solve that one would need to move the functions inside a structure. For example: namespace boost { namespace detail { struct utilities { static uint8_t random_byte() { ... } }; }} Christian