QT5.14.2 构建一个超过5个.cpp文件的项目,构建进度条变成红色,Remove一个.cpp的文件;构建正常;
也不是我程序的问题,因为我新建一个项目,加入四个空的类也是会出现进度条变成红色的异常的;所以猜想应该是环境的问题;
构建套件(kit)
不是网上说的构建目录中文符号的问题,也不是构建套件不合适;
切换构建套件为QT5.14.2 MinGW 64-bit,超过五个.cpp文件也是会出现红色的进度条的;
但是加入.h文件是没有问题的;
异常:
c1.cpp文件是空的:
Removw c1.cpp:
最后:.pro文件
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
c2.cpp \
c3.cpp \
c4.cpp \
main.cpp \
mainwindow.cpp
HEADERS += \
c1.h \
c2.h \
c3.h \
c4.h \
c5.h \
mainwindow.h
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
有没有遇到过的,求解救!