[英]Qt doesn't recognize Standard libs
I'm struggling finding why my Qt does not recognize anymore any of the std libs like: iostream or List. 我正在努力寻找为什么我的Qt不能再识别任何标准库(如iostream或List)的原因。 I'll better explain with some snaps:
我会更好地解释一下:
The funny thing is that was correctly recognizing them yesterday, then, for some reason seems that I did something wrong and now I got that error, plus, if I try to run it, it will perfectly work. 有趣的是,昨天正确地识别了它们,然后,由于某种原因,我似乎做错了,现在我得到了该错误,此外,如果我尝试运行它,它将很好地工作。
My .pro file: 我的简历:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = PhotoShock
TEMPLATE = app
DEFINES += QT_DEPRECATED_WARNINGS
CONFIG += c++11
SOURCES += \
blur.cpp \
flip.cpp \
hsl_process.cpp \
imghandling.cpp \
kernels.cpp \
main.cpp \
mainwindow.cpp \
matrix_filters.cpp \
process.cpp \
rgb_process.cpp \
rotation.cpp
HEADERS += \
blur.h \
flip.h \
hsl_process.h \
imghandling.h \
kernels.h \
mainwindow.h \
matrix_filters.h \
process.h \
rgb_process.h \
rotation.h
FORMS += \
mainwindow.ui
LIBS += /usr/local/lib/libopencv_core.3.4.6.dylib
LIBS += /usr/local/lib/libopencv_highgui.3.4.6.dylib
QT_CONFIG -= no-pkg-config
CONFIG += link_pkgconfig
PKGCONFIG += opencv
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
DISTFILES += \
test/lib/library.json
And I'm using Qt creator 4.9.1 Based on Qt 5.12.3, on OSX Mojave. 我正在OSX Mojave上使用基于Qt 5.12.3的Qt Creator 4.9.1。
Romha Korev说得很好,更改编译器配置是让一切重新运行的关键。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.