# Linker error with CXX\_MODULES

**URL:** https://discourse.cmake.org/t/linker-error-with-cxx-modules/15449
**Category:** Development
**Tags:** os:windows, gen:ninja
**Created:** [January 9, 2026, 7:27pm UTC](https://discourse.cmake.org/t/linker-error-with-cxx-modules/15449 "2026-01-09T19:27:20Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![ClausKlein](https://discourse.cmake.org/user_avatar/discourse.cmake.org/clausklein/32/352_2.png) [@ClausKlein](https://discourse.cmake.org/u/ClausKlein)
#### Post date: [January 10, 2026, 10:29am UTC](https://discourse.cmake.org/t/linker-error-with-cxx-modules/15449/4 "2026-01-10T10:29:02Z")

</div>

If I build static libs on Windows, it works:

> <https://github.com/ClausKlein/boost-cmake/pull/11/commits/c2605a39b0037c79536cb3a46d90145eb7c99aac>
>
> This should prevent link errors with header only modules

---

_[View the full topic](https://discourse.cmake.org/t/linker-error-with-cxx-modules/15449)._
