Yup, i had the same problem. Had to add -Wl,--allow-multiple-definition to linker flags to get around it, but i noticed afterwards that the flag propagates down to everything i link to it, so not the best solution.

Den 26-06-2017 kl. 11:49 skrev Jan Niklas Hasse:
Hi,

after doing `pacman -Syu` today, I'm getting the following linker error

C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.3.0/../../../../lib/libboost_unit_test_framework-mt.dll.a(d000208.o):(.text+0x0):
 multiple definition of 
`boost::test_tools::tt_detail::print_log_value<bool>::operator()(std::ostream&, 
bool)'
mycode.cpp.29.o:C:/msys64/mingw64/include/boost/test/tools/detail/print_helper.hpp:102:
 first defined here
collect2.exe: error: ld returned 1 exit status

when linking my C++ program which uses Boost.Test. Has anyone else experienced 
this?

-
Jan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Msys2-users mailing list
Msys2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to