# import std with gcc-15 (libstdc++)

**URL:** https://discourse.cmake.org/t/import-std-with-gcc-15-libstdc/15149
**Category:** Code
**Created:** [September 4, 2025, 12:42pm UTC](https://discourse.cmake.org/t/import-std-with-gcc-15-libstdc/15149 "2025-09-04T12:42:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![anarthal](https://discourse.cmake.org/user_avatar/discourse.cmake.org/anarthal/32/4486_2.png) [@anarthal](https://discourse.cmake.org/u/anarthal)
#### Post date: [September 4, 2025, 12:42pm UTC](https://discourse.cmake.org/t/import-std-with-gcc-15-libstdc/15149/1 "2025-09-04T12:42:05Z")

</div>

From version 15, libstdc++ ships with support for the std and std.compat modules (located under `/usr/include/c++/15/bits/std.cc` and `/usr/include/c++/15/bits/std.compat.cc` in a standard Ubuntu 25.10 installation). Is there plans to support it in CMake? Anything I could do to help? Thanks.

---

<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: [October 26, 2025, 11:51pm UTC](https://discourse.cmake.org/t/import-std-with-gcc-15-libstdc/15149/2 "2025-10-26T23:51:08Z")

</div>

Yes, see [CXX-Modules: import std does still not work on OSX with g++-15](https://discourse.cmake.org/t/cxx-modules-import-std-does-still-not-work-on-osx-with-g-15/15265)

---

<div class="post-metadata">

### Author: ![anarthal](https://discourse.cmake.org/user_avatar/discourse.cmake.org/anarthal/32/4486_2.png) [@anarthal](https://discourse.cmake.org/u/anarthal)
#### Post date: [November 9, 2025, 3:42pm UTC](https://discourse.cmake.org/t/import-std-with-gcc-15-libstdc/15149/3 "2025-11-09T15:42:13Z")

</div>

I’ve tried with CMake 4.1.2 and it now works in Ubuntu! Thanks for the info!
