Results 1 to 2 of 2

Thread: Troubleshooting with compiler referencing only external code

  1. #1
    Join Date
    Nov 2010
    Posts
    63
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Troubleshooting with compiler referencing only external code

    Hi,
    it seems that when I compile my code (from Qt Creator), part of the error tracing goes into auto-generated and included Qt code, i.e. code that I didn't actually write.
    But in this case (see screenshot) I only ever get one very generic hint at my own code (the line including ui_mainwindow.h) and the rest is code I didn't write.
    The mainwindow UI file wasn't even changed by me since the last time it successfully compiled.

    How do I figure out what's wrong with such a generic problem reference to my own code ?
    Do I need to look into what happens in the referenced Qt libraries ?
    Is there a guide to this kind of troubleshooting ?

    Thank you !
    Attached Images Attached Images
    Hint: Think carefully before picking a user name.

  2. #2
    Join Date
    Nov 2010
    Posts
    63
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Troubleshooting with compiler referencing only external code

    Okay, I've figured it out.
    The reason there was no visible error source in my own code was that I managed to create an error in the Qt library without knowing it: an unaptly named #define that implicitly changed the library's definition !

    Feel free to delete the thread or leave it as a cautionary tale to others. ;-)
    Hint: Think carefully before picking a user name.

Similar Threads

  1. Replies: 4
    Last Post: 5th January 2011, 16:51
  2. Strange compiler behaviour (compiler passes wrong argument)
    By SasaVilic in forum General Programming
    Replies: 2
    Last Post: 2nd November 2010, 12:36
  3. Referencing QCA Using QMake
    By wswartzendruber in forum Qt Programming
    Replies: 1
    Last Post: 29th July 2009, 09:09
  4. Style Sheets: re-using/referencing builtin pixmaps
    By chezifresh in forum Qt Programming
    Replies: 5
    Last Post: 23rd June 2009, 20:18
  5. Referencing Parent Widget from Child
    By taylor34 in forum Qt Programming
    Replies: 8
    Last Post: 11th April 2006, 16:13

Tags for this Thread

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.