Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 CLion IDE。最近 IDE 经常显示错误错误。但是相同的代码编译成功。 例如:
重新打开项目并重新启动 IDE 后无法修复错误错误。为什么?我该如何解决?
该错误看起来像是找不到包含文件。这看起来您用于检测包含文件的 CMake 宏无法正常工作。
您的项目仍然可以编译,因为很可能包含文件已安装到编译器的标准包含路径(例如 Linux 上的 /usr/include/)中。