GCC debugger stack trace displays wrong file name and line number

后端 未结 11 2025
说谎
说谎 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:52

    WxWidgets do also define their own main if you use their IMPLEMENT_APP() macro

    From here

    As in all programs there must be a "main" function. Under wxWidgets main is implemented using this macro, which creates an application instance and starts the program.

    IMPLEMENT_APP(MyApp)

提交回复
热议问题