Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. the compiler window outputs many header files (build in windows with msvc)
Qt 6.11 is out! See what's new in the release blog

the compiler window outputs many header files (build in windows with msvc)

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 3 Posters 124 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cuijg
    wrote last edited by
    #1

    How can I prevent the output of these header files?

    1fdd25b4-9422-4b6b-a606-2517aeb246bb-image.png

    cristian-adamC 1 Reply Last reply
    0
    • C cuijg

      How can I prevent the output of these header files?

      1fdd25b4-9422-4b6b-a606-2517aeb246bb-image.png

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote last edited by cristian-adam
      #2

      @cuijg This comes from the Microsoft C/C++ Compiler via the /showIncludes parameter.

      Build systems like ninja use this information to manage the dependencies between source files.

      Ninja has the msvc_deps_prefix parameter where you could specify the translated string of Note: including file:.

      CMake since version 3.20 has:

      Makefile Generators, for some toolchains, now use the compiler to extract implicit dependencies while compiling source files.

      I don't know if JOM can handle this.

      You can fix this as:

      1. Migrate to the Ninja CMake generator.
      2. Migrate to clang-cl compiler which doesn't use /showIncludes but the GNU version of generating the dependencies
      3. Set VSLANG=1033 environment variable to force the output of the MSVC Compiler to English and hopefully things would just work.
      1 Reply Last reply
      2
      • joborJ Offline
        joborJ Offline
        jobor
        wrote last edited by
        #3

        jom has no special handling for this. The simplest way forward seems to be to switch to ninja.

        1 Reply Last reply
        2
        • C Offline
          C Offline
          cuijg
          wrote last edited by
          #4

          OK,I Migrate to the Ninja,,完美~

          1 Reply Last reply
          0
          • C cuijg has marked this topic as solved

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved