Skip to content
Discussion options

You must be logged in to vote

Hey, I ran into this exact thing before. The error fatal error: print: No such file or directory basically 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:

  1. 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:

    - name: Install GCC 13
      run: sudo apt install g++-13

    and then set CXX=g++-13.

  2. In your CMakeLists.txt, explicitly set the C++ standard:

    set(CMAKE_CXX_STANDARD 23)
    set(CMAKE_CXX_STANDARD_REQUIRED ON)
  3. D…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yusuf601
Comment options

Answer selected by yusuf601
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD
2 participants