Symbols in libuuid.a are definitely duplicated, tested on MSYS2, Ubuntu, Arch:
nm '/usr/x86_64-w64-mingw32/lib/libuuid.a' | grep FileProtocol 0000000000000000 R CLSID_FileProtocol 0000000000000000 r .rdata$CLSID_FileProtocol 00000000000000f0 R CLSID_FileProtocol Here is disassembly of first duplicated symbol from Ubuntu: https://paste.ubuntu.com/24493619/ 2017-05-01 18:03 GMT+02:00 Liu Hao <lh_mo...@126.com>: > On 2017/5/1 21:27, Tomay wrote: > > The following UUIDs are defined in both *uuid.c* and *extra-uuid.c* > source > > files, whitch leads to linking errors with duplicate symbols when using > > *libuuid.a* > > > In my opinion it is practically incorrect, but you shouldn't get linker > errors because the macro `INITGUID` is defined in both files hence each > GUID definition is marked with the `selectany` attribute (see definition > of the macro `DEFINE_GUID` in [guiddef.h]). > > -- > Best regards, > LH_Mouse > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Mingw-w64-public mailing list > Mingw-w64-public@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mingw-w64-public > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public