this error shows up because there is no debug information in the compiled program. the problem can be solved by adding "-g" after the gcc/g++ compiler in the makefile, and recompile the program, then the problem can be solved.
“No source available f
解决调试时无源代码错误
最新推荐文章于 2024-09-20 19:31:32 发布
本文介绍了解决在调试过程中遇到的“No source available for main()”错误的方法。该问题通常由于编译后的程序缺少调试信息导致。解决方案是在Makefile中GCC/G++编译器后添加“-g”选项,并重新编译程序。
604

被折叠的 条评论
为什么被折叠?



