简体   繁体   English

无法调试C ++ Eclipse Makefile项目

[英]Unable to debug C++ eclipse makefile project

I imported an existing C++ project with working Makefiles. 我导入了具有可用Makefile的现有C ++项目。 And in the project property, I ticked off "Use default build" and "Generate Makefile Automatically" 在项目属性中,我勾选了“使用默认构建”和“自动生成Makefile”

However I can not debug it. 但是我不能调试它。 The error is No source available for "main() " . 错误是“ main()”没有可用的源。 I setup the Source in the Run/Debug Dialog in all possible ways I can imagine, and get the same error. 我以我可以想象的所有可能方式在“运行/调试”对话框中设置了源,并得到了相同的错误。

I am using Eclipse Cpp Juno Linux. 我正在使用Eclipse Cpp Juno Linux。 Any solution please?? 有什么解决办法吗?

Did you try adding the -g flag to the build command in the makefile? 您是否尝试过将-g标志添加到makefile中的build命令中? Also refresh the project once you have transferred all the files. 传输完所有文件后,还刷新项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM