compiler: http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.7.2/32-bit/threads-posix/sjlj/x32-4.7.2-release-posix-sjlj-rev6.7z
boost: http://
I got the same error when I compile my code use gcc-4.9.1 in MinGW32 with a lib which use gcc-4.4.7 as the compiler. And I also used ccache to speed up,ccache is also a problem. Remove the cache in ~/.ccache/ and recompiled then I workaround this.
I believe this is a compiler bug. The workaround in my case was to add -fno-tree-vectorize
.
In my case boost 1.58 was internally compiling with "-march=i686", but my code wasn't. Adding "-march=i686" to my project got rid of all "duplicate section".
lesson learned: always make painstakingly sure that all libraries and the main project are compiled with identical compiler options.