Hello,

The issue is now fixed.

Visual Studio 2026 18.12.0 is recently released, which provides MSVC Build Tools Version
14.52. With this version, mdds build problem are fixed.

MSVC Build Tools version 14.52 now generally available
November 16th, 2026
https://devblogs.microsoft.com/cppblog/msvc-build-tools-version-14-52-now-generally-available/

With the new Visual Studio, cl (compiler) and link (linker tool) have at least version 14.52.37025 / 19.52.37025 accordingly.

MSVC Build Tools Version 14.52 Release Candidate Now Available
https://devblogs.microsoft.com/cppblog/msvc-build-tools-version-14-52-release-candidate-now-available/

There was some build problems with the new version, which should be fine now with the latest master, after this patch:

Fix build issues with Visual Studio 2026 18.12
https://git.libreoffice.org/core/commit/66a4e3c2ad05d9ee3aeadea9105b606a36b9a4c7

Therefore, please update Visual Studio 2026 and pull the latest changes from LibreOffice git master, and you should be able to build LibreOffice on Windows with MSVC 2026.

Regards,
Hossein

On 10.11.2026 12:40, Hossein Nourikhah wrote:
Hello,
Multi-Dimensional Data Structure (mdds) is one of the libraries that is used in LibreOffice. Recently, mdds build with Visual Studio 2026 faces issues like this:

[CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/ liborcus/gnumeric_context.cpp [CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/ liborcus/gnumeric_detection_handler.cpp C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds\flat_segment_tree_def.inl(761): error C2382: 'mdds::flat_segment_tree<Key,Value>::operator ==': redefinition; different exception specifications C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds/ flat_segment_tree.hpp(501): note: see declaration of 'mdds::flat_segment_tree<Key,Value>::operator ==' [CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/ liborcus/gnumeric_filter_context.cpp [CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/ liborcus/gnumeric_handler.cpp make[1]: *** [C:/Users/users/core/solenv/gbuild/ LinkTarget.mk:402: C:/Users/users/core/workdir/GenCxxObject/UnpackedTarball/liborcus/src/liborcus/ gnumeric_cell_context.o] Error 2
make[1]: *** Waiting for unfinished jobs....
C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds\flat_segment_tree_def.inl(761): error C2382: 'mdds::flat_segment_tree<Key,Value>::operator ==': redefinition; different exception specifications C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds/ flat_segment_tree.hpp(501): note: see declaration of 'mdds::flat_segment_tree<Key,Value>::operator ==' C:/Users/users/core/workdir/GenCxxObject/UnpackedTarball/liborcus/src/liborcus/ gnumeric_context.o] Error 2

Mihai, a LibreOfice contributor, submitted a workaround patch to mdds:

Fix MSVC C2382 error: redefinition of operator== with different exception specifications
https://gitlab.com/mdds/mdds/-/merge_requests/130

But, the patch was not merged, as the problem is considered a bug from MSVC itself:

MSBuildTools emits C2382 for template member with dependent noexcept
https://developercommunity.visualstudio.com/t/MSBuildTools-emits-C2382-for-template-me/11102837

Visual Studio team has announced that the issue is fixed in MSVC Build Tools Version 14.52, in which uses at least 19.52.37025 as the compiler version. But, this update is still not delivered. The current compiler version is 19.51.36260 for Visual Studio 2026 version 18.11.3 (October 2026 feature update).

MSVC Build Tools Version 14.52 Release Candidate Now Available, October 15th, 2026
https://devblogs.microsoft.com/cppblog/msvc-build-tools-version-14-52-release-candidate-now-available/

At the moment, you may fix the build problem by modifying a single file. Removing 2 words from the end of this line should make the build pass:

workdir\UnpackedTarball\mdds\include\mdds\flat_segment_tree_def.inl:761

Line 760 and 761 should look like this:

template<typename Key, typename Value>
bool flat_segment_tree<Key, Value>::operator==(const flat_segment_tree& other) const

It should remain there until the next 'make clean', which I rarely do. I usually do not invoke 'make clean' until I have to.

It is expected that the November feature update of MSVC 2026 with the upcoming version 18.12, will fix this issue. I hope so.

Regards,
Hossein

Reply via email to