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

后端 未结 13 1495
醉梦人生
醉梦人生 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:33

    I would like to add a little new blood to this old thread.

    I encountered this problem when I tried to compile and debug a gnu arm project.

    I solved the problem by modifying the Makefile: adding "-g -O0" at the end of this line "CFLAGS += -Wall -Werror -O3"

提交回复
热议问题