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

标签 c eclipse gcc eclipse-cdt

我是 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/

相关文章:

gcc - 这个乘加代码的奇怪优化结果

c - 如何使用 GCC 在 asm() 中编写多个汇编语句而不使用 "\t\n"分隔每一行?

c - ex 26 学习 c 的困难方法不执行

C比较char和int

java - "org.eclipse.equinox.ds@3:start"背后的魔力?

java - Glassfish 4部署错误

eclipse - 无法使用 eclipse、apache2 和 tomcat7 (Ubuntu) 访问我的 webapp

c - ffmpeg (libavcodec) 警告 : encoded frame too large

C - 如何使函数返回指针?

c++ - 使用私有(private)复制/移动构造函数进行聚合初始化