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.