Zcy
Zcy

Reputation: 75

Qt error exit code -1073741515 (0xC0000135)

I am new to Qt. I was trying to use Qt in CLion and have already modified the CMake settings in CLion to make it use the CMake in Qt. Then I wrote a piece of test code:

#include <iostream>
#include <QApplication>
#include <QDebug>

int main() {
    std::cout << "Hello, World!" << std::endl;
    qDebug() << QT_VERSION_STR;
    return 0;
}

The Build succeeded, but when I try to run it the error Process finished with exit code -1073741515 (0xC0000135) occurred. Could anyone give some instructions on why this error occur and how to fix it?

Upvotes: 1

Views: 3564

Answers (1)

Zcy
Zcy

Reputation: 75

Problem solved by adding C:\Qt\Tools\QtCreator\bin and C:\Qt\5.15.2\mingw81_64\bin to the environment variable PATH. These two paths could be different depends on where you install Qt.

NOTE: Only add C:\Qt\5.15.2\mingw81_64\bin did not solve this problem.

Upvotes: 3

Related Questions