在工程目录中
执行qmake -project生成.pro文件
执行qmake指令
报错:undefined reference to `__imp__ZN12QApplicationC1ERiPPci'
修改.pro文件
旧:
TEMPLATE = app
TARGET = sdl
INCLUDEPATH += .
# Input
SOURCES += 123.cpp
新的:
TEMPLATE = app
TARGET = sdl
INCLUDEPATH += .
# Input
SOURCES += 123.cpp
QT += gui widgets core