如何修复“以退出代码-1073741515(0xC0000135)完成的处理” CLion,C ++,QT5,MSVC16 2019

时间:2019-09-19 14:43:19

标签: c++ cmake qt5 clion

我正在尝试编译默认代码以在Windows上测试QT5,但我总是遇到此错误:

Process finished with exit code -1073741515 (0xC0000135)

这是我的main.cpp:

#include <stdio.h>
#include <opus/opus.h>
#include <portaudio.h>
#include <QtWidgets/QApplication>
#include <QtWidgets/QPushButton>

int main(int argc, char **argv)
{
    QApplication app (argc, argv);
    QPushButton button ("Hello world !");

    button.show();
    return app.exec();
}

以及我的CMakeLits.txt:

project(Babel)
cmake_minimum_required(VERSION 2.8.12)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()

find_package(Qt5Widgets CONFIG REQUIRED)

include_directories(${CMAKE_INCLUDE_PATH})
add_executable(babel main.cpp)
target_link_libraries(babel ${CONAN_LIBS} Qt5::Widgets)

有人有解决的办法吗?

0 个答案:

没有答案