Eclipse的错误:没有可用的&QUOT源;" [英] Eclipse error: No source available for ""

查看:218
本文介绍了Eclipse的错误:没有可用的&QUOT源;"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用在Mac OS X Leopard的Eclipse的太阳神和调试C ++ code调用FSF GDB 7.1,调试停靠在主要一线。那么第一步之后,我得到

Using Eclipse Helios in Mac OS X Leopard and debugging C++ code calling fsf gdb 7.1, the debugging stops at first line of main. Then after the first step I get

No source available for ""
View disassembly

为什么这个错误?我应该给编译其他选项? Eclipse将自动生成的Makefile

Why this error? Should I give additional options for compilation? Eclipse generated automatically the Makefile

推荐答案

我有同样的问题,以下解决它:

I had the same problem and the following solved it:

进入菜单运行 - >调试配置... 并打开一个对话窗口。在左边应该在 C / C ++应用程序选择您的项目名称(比如 MyProject的的为例)。如果不选择它。然后在右侧,选择该选项卡,并确保在在 C / C ++应用程序中的文本框记载:的调试/ MyProject的的。此外,检查的调试的在下拉列表框中选择旁边的构建配置:下面

Go to menu Run->Debug Configurations... and a dialogue window opens. On the left there should be selected your project name (say MyProject for example) under C/C++ Application. If not select it. Then on the right side, select the tab main and make sure that in the textbox under C/C++ Application reads: Debug/MyProject. Also check that Debug is selected in the dropdown box next to Build Configuration: below.

在我的情况,而不是调试/ MyProject的的,它的发布/ MyProject的的。我永远无法理解为什么。反正...

In my case instead of Debug/MyProject, it was Release/MyProject. I never understood why. Anyway...

希望帮助

这篇关于Eclipse的错误:没有可用的&QUOT源;"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆