You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Eclipse C/C++视角新建项目提示“No applicable items”问题咨询

Troubleshooting "No applicable items" When Creating C Projects in Eclipse's C/C++ Perspective

Hey there, let's break down why you're hitting this frustrating error, even after switching to the C/C++ perspective. I've dealt with this exact issue a few times, so here are the most likely causes and fixes to get you back on track:

1. Missing or Incomplete C/C++ Development Tools (CDT)

Eclipse's Java perspective works out of the box because those tools are included by default, but the C/C++ tooling (called CDT) might not be fully installed on your setup. Even if you can switch to the C/C++ perspective, critical components could be missing, which breaks the "New Project" menu.

Fix:

  • Open Eclipse and go to Help -> Install New Software
  • In the "Work with" dropdown, select the update site matching your Eclipse version (e.g., "2023-09 - https://download.eclipse.org/releases/2023-09")
  • Search for C/C++ Development Tools
  • Check all the main features (like CDT Main Features, CDT Build Tools) and any optional ones you might need
  • Click "Next" to install, then restart Eclipse once done

2. Corrupted Perspective Configuration

Sometimes switching perspectives doesn't fully load the required UI components, or the perspective's settings get corrupted. This can hide the project creation options even if the tools are installed.

Fix:

  • Reset the C/C++ perspective: Go to Window -> Perspective -> Reset Perspective...
  • Confirm the reset when prompted, then try creating a new project again
  • If that doesn't work, try deleting the perspective's cached config (backup your workspace first!): Navigate to your workspace's .metadata/.plugins/org.eclipse.ui.workbench folder, delete the workbench.xml file, then restart Eclipse. This will reset all perspective settings to default.

3. Damaged Workspace Configuration

Your current workspace might have corrupted metadata that's interfering with the C/C++ perspective's functionality. This is more common if you've been using the same workspace for a long time or had an Eclipse crash.

Fix:

  • Create a brand new workspace: Go to File -> Switch Workspace -> Other... and choose a new folder
  • Switch to the C/C++ perspective in the new workspace and try creating a project
  • If it works, you can import your existing projects from the old workspace using File -> Import -> General -> Existing Projects into Workspace

4. Version Compatibility Issues

If you installed CDT manually, there might be a mismatch between your Eclipse version and the CDT plugin version. Older Eclipse versions might not support newer CDT releases, and vice versa.

Fix:

  • The easiest solution is to download the Eclipse IDE for C/C++ Developers package directly from the Eclipse website. This version comes pre-packaged with all the necessary CDT tools and is guaranteed to be compatible.
  • If you want to stick with your current Eclipse version, double-check that the CDT version you installed matches your Eclipse's release train (e.g., Eclipse 2023-09 needs CDT 12.0.x).

内容的提问来源于stack exchange,提问作者Lagging

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.19 10:10:28