PDA

View Full Version : Troubleshooting with compiler referencing only external code



Computer Hater
27th July 2011, 03:02
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 !

Computer Hater
27th July 2011, 10:11
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. ;-)