Qt Creator can't find headers (says: “No such file or directory”)

前端 未结 6 1050
轻奢々
轻奢々 2021-02-05 10:11

How can I tell Qt Creator 2.4.1 (based on Qt 4.7.4 32-bit) where to look by default for header files?

When I open a C file in Qt Creator and say



        
6条回答
  •  礼貌的吻别
    2021-02-05 10:57

    It depends on which toolchain is defined for the current project.

    Toolchains are defined in Tools-Options-Build & Run-Tool Chains. Most are autodetected, but you can add your own.

    There is no default toolchain, so you need a project for those headers to be found in the toolchain selected for it.

提交回复
热议问题