我有一个Qt 5.12的Windows应用程序。我使用的是Qt Creator和Mingw 64位。我已经部署了windeployqt.exe的应用程序。当我启动它时,应用程序需要libgcc_s_seh-1.dll文件。在我将其粘贴到目录中之后,我得到0xc000007b错误。我运行了Dependency Walker,它给出了以下错误:
Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Error: A circular dependency was detected.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.这是我的.pro文件
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = Control
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as 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 you use 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
QMAKE_LFLAGS += -static-libgcc
##CONFIG += c++11
##QMAKE_CXXFLAGS += -std=c++0x
SOURCES += \
main.cpp \
mainwindow.cpp
HEADERS += \
mainwindow.h
FORMS += \
mainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target有人能帮我吗?非常感谢。
发布于 2019-03-21 18:03:30
发布于 2019-03-22 14:02:30
当编译的应用程序看不到Qt dlls时,我得到了这个错误,所以请检查你的路径。也可能是它找不到其他的gcc dll,比如libwinpthread-1.dll。
https://stackoverflow.com/questions/55276395
复制相似问题