gpt4 book ai didi

Eclipse 中的 C/C++ 运行/调试配置

转载 作者:太空宇宙 更新时间:2023-11-04 00:07:28 26 4
gpt4 key购买 nike

我是 Eclipse 中 C/C++ 开发的新手,正在尝试配置 Eclipse。我在使用 GNU GCC 的 Linux 环境中工作,我的工具链被 Eclipse 检测到。正如 Eclipse 文档中给出的那样 1 ,我打开了Run>>Run configurations。但是 C/C++ Local 选项卡不存在。

这就是我得到的。

screenshot from run configurations

但是当我构建一个示例 helloworld 程序时,它构建正确。

console output after building

知道为什么会这样吗?

1 http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_t_run_com.htm

最佳答案

我遇到了和你一样的问题。我能够创建和构建一个 c/c++ 项目,但无法运行/调试它。实际上,我安装了错误的 CDT (CDT Visual C++ Support)。接下来,我安装了正确的 CDT(c/c++ 开发工具),并且在一次 eclipse 重新启动后,我在运行配置中有了 c/c++ 应用程序。

关于Eclipse 中的 C/C++ 运行/调试配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17627753/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com