C++ Qt: undefined reference to `_imp___ZN12QApplicationC1ERiPPci'

后端 未结 2 1481
一向
一向 2020-12-11 04:05

I am trying to remind myself some C++, and also learn about Qt.

I am working on Windows. I have installed Qt (5.1.0), MinGW (g++ 4.6.2), Gnu Make (3.81).

I

相关标签:
2条回答
  • 2020-12-11 04:46

    The problem here is you appear to be using Visual Studio 2012 libraries for your mingw builds. You need to link to the mingw compiled Qt instead.

    0 讨论(0)
  • 2020-12-11 05:01

    Add "greaterThan(QT_MAJOR_VERSION, 4): QT += widgets" into your .pro file

    0 讨论(0)
提交回复
热议问题