简体   繁体   English

Eclipse CDT-在项目资源管理器中缺少“归档”和“包含”

[英]Eclipse CDT - missing “Archives” and “Includes” in Project Explorer

I have multiple projects open under a single workspace. 我在一个工作空间下打开了多个项目。 They were 2 separate code repos, and I imported them separately by clicking on File , New , Makefile Project with Existing Code . 它们是2个单独的代码存储库,我通过单击FileNewMakefile Project with Existing Code分别导入了它们。

In additional to the folders that already exist for the project itself, the first project had "Binaries", "Archives", and "Includes" folders automatically generated. 除了项目本身已经存在的文件夹之外,第一个项目还具有自动生成的“二进制文件”,“归档”和“包含”文件夹。 When I click on, say, "Includes", I see things like "/usr/include". 当我单击说“包括”时,我看到类似“ / usr / include”的内容。 That makes sense to me. 这对我来说很有意义。

These automatically generated folders did not appear for the second project. 这些自动生成的文件夹没有出现在第二个项目中。 Is that sign of something wrong? 那是什么迹象吗?

To answer my own question - the problem is when you do Makefile Project with Existing Code , you need to specify a compiler for the indexer. 要回答我自己的问题-问题是当您Makefile Project with Existing Code进行Makefile Project with Existing Code ,您需要为索引器指定一个编译器。 My problem was that I clicked on "None" instead of something reasonable like "Linux GCC". 我的问题是我单击“无”,而不是诸如“ Linux GCC”之类的合理名称。 I removed the project and added it back in with "Linux GCC", and everything is fine. 我删除了该项目,并使用“ Linux GCC”将其添加回去,一切都很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM