Header file not found in Eclipse CDT

前端 未结 2 724
猫巷女王i
猫巷女王i 2021-01-18 14:24

I\'m trying to build a project that uses an external library (Casablanca) using Eclipse CDT 8.8.1. on Mac OS. As expected, the first build run returned \"cpprest/http_clien

2条回答
  •  一向
    一向 (楼主)
    2021-01-18 14:51

    Adding an include path to Project Properties | C/C++ General | Paths and Symbols only adds the include path to the set of includes searched by CDT's indexer when indexing the project.

    The actual build system needs to be told the include path by another means. If you're using a Managed Build project (as opposed to a Makefile project) - which it sounds like you are - you would add the include path in Project Properties | C/C++ Build | Settings. Note that the indexer automatically picks up build settings, so once you do this, there shouldn't be a need to also add it to Paths and Symbols.

提交回复
热议问题