Results 1 to 5 of 5

Thread: Debugging in Windows

  1. #1
    Join Date
    Jan 2006
    Location
    Berkeley California
    Posts
    109
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Debugging in Windows

    I'm running 4.1.1 in windows compiled by the minGW tools. I'm using Cygwin's gdb to try to debug a crashing program but it says there are no symbols in the file.

    How do I enable keeping the symbol table in the executable in this environment?

    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debugging in Windows

    Add CONFIG += debug to your .pro file and recompile your application or try compiling your application using Makefile.debug (qmake should create it by default under windows).

  3. #3
    Join Date
    Jan 2006
    Location
    Berkeley California
    Posts
    109
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debugging in Windows

    I get the following error when I add "CONFIG += debug" to my .pro file:

    g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,console -o "debug\n1.exe" debug\bl.o d
    ebug\comm.o debug\main.o debug\MainWindow.o debug\qextserialbase.o debug\qextserialport.o debug\win_qextserialport.o debug\moc_MainWindow.o -L"C:\Dat
    a\Qt\4.1.1\lib" -lQtGuid4 -lQtCored4
    C:\Data\Qt\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\. .\..\..\mingw32\bin\ld.exe: cannot find -lQtGuid4

    Thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debugging in Windows

    Quote Originally Posted by Doug Broadwell View Post
    C:\Data\Qt\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\. .\..\..\mingw32\bin\ld.exe: cannot find -lQtGuid4
    You don't have the debug versions of Qt libraries. You can build them by hand or using a link in Start -> Programs -> Qt ... -> Build debug libraries (or something similar).

  5. #5
    Join Date
    Jan 2006
    Location
    Berkeley California
    Posts
    109
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Debugging in Windows

    Thanks, that fixed it!

    Doug

Similar Threads

  1. Convert Windows "HWND" to QWidget* pointer?
    By gerome69 in forum Qt Programming
    Replies: 4
    Last Post: 20th September 2006, 14:03
  2. converting unix exe to windows binary
    By deekayt in forum General Programming
    Replies: 2
    Last Post: 17th September 2006, 02:00
  3. Experience using KDevelop with Cygwin under windows
    By high_flyer in forum General Discussion
    Replies: 4
    Last Post: 11th September 2006, 17:50
  4. qt and mingw can not run on windows 98?
    By evewei in forum Installation and Deployment
    Replies: 4
    Last Post: 26th June 2006, 10:22
  5. MDI windows without QWorkspace
    By Big Duck in forum Newbie
    Replies: 2
    Last Post: 16th June 2006, 18:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.