Eclipse C++构建问题
我刚刚在 Ubuntu 上的 Eclipse 中用 C++ 编写了一个简单的程序。但是,当我按 Ctrl+B 或选择构建全部按钮时,不会构建任何二进制文件,因此当我尝试运行该项目时,我收到错误消息:启动失败。未找到二进制文件。
我应该怎么办?
谢谢!
I've just written a simple program in C++ in Eclipse on Ubuntu. But when I press Ctrl+B or select the build all button no binary file is build, and so when I try to run the project I receive the error message: Launch failed. binary not found.
what should I do?
thanx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以在终端中编译并运行程序
使用 cd 命令进入终端中的特定目录并输入
You can compile and run the program in the terminal
Go to the specific directory in the terminal using the cd command and type
您必须手动配置用于运行程序的“运行配置”才能找到要执行的二进制文件。如果没有编译错误,它应该在某个地方创建了一个可执行文件。
You'll have to manually configure the 'run configuration' you use to run the program to find the binary to execute. If there are no compilation errors, it should have created an executable somewhere.
我的二进制文件在默认包下找到,而不是预期的“调试”包。我必须手动修改运行配置(如 ascanio 提到的)。我不得不更改应用程序的路径,仅此而已。
My Binaries were found under Default package instead of the expected "Debug" package. I had to manually modify run configuration (as mentioned by ascanio). I had to change the path of the application that's all.