I've got a project with about 40 classes employing Qt Widgets.
After much pain I've got the makefile to make it, now I'd like to use the MinGW gdb to debug it.
I've managed to get the following simple cpp file to compile and run with gdb :
For this I had to remove this option from the link command : -Wl,s
// Simp1.cpp
int main(int argc, char *argv[]) {
int k = 0; //<-----breakpoint
return 0;
}
however when I add Qt classes to the mix it does not stop at the breakpoint.
Adding and removing -Wl,s to the link command has no effect.
Using the exact same compile commands and link commands as the QtCreator has no effect.
// Simp2.cpp
#include <QApplication>
#include "MyMainWindow.h"
int main(int argc, char *argv[]) {
int k = 0; //<-----breakpoint
QApplication a(argc, argv);
MyMainWindow mw;
mw.show();
return a.exec();
}
Question : is it at all possible to use MinGW gdb on a Qt class project in Eclipse?
yes or no?
[Updated on: Tue, 03 March 2015 06:37]
Report message to a moderator