GCC debugger stack trace displays wrong file name and line number

后端 未结 11 1957
说谎
说谎 2021-01-21 00:22

I am trying to port a fairly large C++ project to using g++ 4.0 on Mac OS X. My project compiles without errors, but I can\'t get GDB to work properly. When I look at the stack

11条回答
  •  广开言路
    2021-01-21 00:51

    Can it be that you are using SDL? SDL redefines main so your main will be named SDL_main and that the SDL parts might be heavy optimized so down there you'll have problem getting good gdb output.

    ...just a thought

    Read this

提交回复
热议问题