error :“No source available for main()” when debugging by eclipse cdt

来源:互联网 发布:linux 超级用户登录 编辑:程序博客网 时间:2024/06/08 07:02

This error occur when debugging compiled program.

The reason of this problem is no debug information.

The solution is add "-g" after the gcc/g++ compiler or chiose debug option.