Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse, Qt Widgets & gdb possible?(can Eclipse use gdb to debug a project employing Qt Widgets?)
Eclipse, Qt Widgets & gdb possible? [message #1646885] Tue, 03 March 2015 01:35 Go to next message
Eclipse UserFriend
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 01:37] by Moderator

Re: Eclipse, Qt Widgets & gdb possible? [message #1658223 is a reply to message #1646885] Sun, 08 March 2015 04:26 Go to previous message
Eclipse UserFriend
Solution found : use CodeBlocks
Previous Topic:Eclipse CDT - external libraries
Next Topic:Eclipse Luna C++ compiles but will not run on OS X 10.8.5
Goto Forum:
  


Current Time: Sun Jul 06 21:24:58 EDT 2025

Powered by FUDForum. Page generated in 0.08365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top