
我使用的是 Eclipse 3.5.2。我想安裝CDT插件,以便我可以編譯C/C++程式。
我嘗試安裝 CDT 插件但失敗,並出現以下錯誤訊息:
Cannot complete the install because one or more required items could not be found.
Software being installed: C/C++ GCC Cross Compiler Support 1.1.0.201206111645 (org.eclipse.cdt.build.crossgcc.feature.group 1.1.0.201206111645)
Missing requirement: C/C++ Managed Builder UI 8.1.0.201206111645 (org.eclipse.cdt.managedbuilder.ui 8.1.0.201206111645) requires 'bundle org.eclipse.ui.console [3.5.100,4.0.0)' but it could not be found
Cannot satisfy dependency:
From: CDT GCC Cross Compiler Support 1.1.0.201206111645 (org.eclipse.cdt.build.crossgcc 1.1.0.201206111645)
To: bundle org.eclipse.cdt.managedbuilder.ui 8.1.0
Cannot satisfy dependency:
From: C/C++ GCC Cross Compiler Support 1.1.0.201206111645 (org.eclipse.cdt.build.crossgcc.feature.group 1.1.0.201206111645)
To: org.eclipse.cdt.build.crossgcc [1.1.0.201206111645]
有沒有人設法透過 Eclipse v 3.5.2 安裝/使用 CDT 插件?
答案1
你安裝了GCC嗎?如果我沒記錯的話 CDT 不包含編譯器。在安裝 CDT 之前,您需要找到一個 C 編譯器並安裝它。