github workflows not supported library print c++ #179743
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey, I ran into this exact thing before. The error A few ways to fix it:
Basically, GitHub Actions just needs a modern enough compiler to support the library, once that’s set, |
Beta Was this translation helpful? Give feedback.

Hey, I ran into this exact thing before. The error
fatal error: print: No such file or directorybasically means your CI environment’s compiler doesn’t know about the<print>header, which is only available in C++23. Even if your local machine supports it, GitHub’s runners might be using an older GCC/Clang version by default.A few ways to fix it:
Make sure your workflow installs a compiler that supports C++23 (e.g., GCC 13+ or Clang 16+). On Ubuntu runners, you can add something like:
and then set
CXX=g++-13.In your
CMakeLists.txt, explicitly set the C++ standard:D…