Nominate our 2022 Qt Champions!

Linking errors

  • Hello. I'm trying to compile my first Qt project, but I have problems with unresolved extrnals when I link it. This is the error log:

    I'm using Qt compiled with VS2012 x86 (compiled with -MT parameter). My program is also compiled with the same compiler and linked statically. I link with these Qt-related libraries: Qt5Core.lib Qt5Gui.lib Qt5Widgets.lib qtmain.lib

    Do I need some more libraries to include or are there some other dependencies which I missed? How can I fix these errors?

    Thank you.

  • Moderators

    did you compile Qt itself also statically?

Log in to reply