4 ms·
I recently used C++ for the first time. Because I saw a blog post that MSVC now supports C++ modules, I decided to try them. During the development I started ge
by zigzag312 4y ago
I recently used C++ for the first time. Because I saw a blog post that MSVC now supports C++ modules, I decided to try them. During the development I started getting weird linker errors about duplicate COMDAT and from my research it seems it's compiler or linker bug.
- zigzag312 4y agoTo reproduce that bug create CMake project, create shared library subproject, add module to library and use std::filesystem::path in the module. Then use that shared library from another project and try to build it with MSVC (VS2022 17.3.0 Preview 1). https://developercommunity.visualstudio.com/t/lnk1179-invalid-or-corrupt-file-duplicate-comdat-f/1517475 https://developercommunity.visualstudio.com/t/lnk1179-invali...