[boost.interprocess] linking problems - multiply defined symbols

To [boost.interprocess] developers: When I'm including any *.hpp files from this library that in turn include "errors.hpp" in multiple *.cpp files I get multiply defined symbols error, something like: Error 6 fatal error LNK1169: one or more multiply defined symbols found C:\... This is due to a function in errors.hpp "void fill_system_message(int sys_err_code, std::string &str)" that is *NOT* marked "static inline". I'm using MSVS C++ 2005 compiler. Thanks, Eugene

Hi Eugene, Eugene Prystupa wrote:
To [boost.interprocess] developers:
When I'm including any *.hpp files from this library that in turn include "errors.hpp" in multiple *.cpp files I get multiply defined symbols error, something like:
Error 6 fatal error LNK1169: one or more multiply defined symbols found C:\...
This is due to a function in errors.hpp "void fill_system_message(int sys_err_code, std::string &str)" that is *NOT* marked "static inline". I'm using MSVS C++ 2005 compiler.
Thanks for the report. This bug was previously rerported and it's already fixed in CVS code. Thanks again, Ion
participants (2)
-
Eugene Prystupa
-
Ion Gaztañaga