“No source available for main()” error when debugging simple C++ in Eclipse with gdb

后端 未结 13 1513
醉梦人生
醉梦人生 2020-12-29 04:51

I\'m having trouble debugging a C++ program in Eclipse (the latest RC of Helios, updated with latest CDT from within itself) on OSX.

The program is very simple (esen

13条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 05:30

    Go to project Properties, C/C++ Build -> Settings. On the first tab (Tool Settings) under Cross GCC Compiler click Debugging and set Debug Level to Maximum (-g3)

提交回复
热议问题