简体   繁体   中英

Application was unable to start correctly (0xc000007b)

I am unable to debug the application, always getting I am using the following configuration: QT 5.3.0 MSVC 2012 64bit Compilation. 我正在使用以下配置:QT 5.3.0 MSVC 2012 64位编译。 I added the following libs to my linking: Qt5Core.lib;Qt5Gui.lib;Qt5Widgets.lib; Optionally I tried to add the following as well (out of despair): qtmain.lib;libEGL.lib;libGLESv2.lib;

I have the following dlls in the path: Qt5Core.dll Qt5Gui.dll Qt5Widgets.dll Again (out of despair) added the following dlls to the path: qwindows.dll qminimal.dll libEGL.dll libGLESv2.dll

And I verified using dependancy walker that all of the dlls are 64 bit

This is the code:

void Bar(int argc, char* argv[])
{
    try {
        QApplication app(argc, argv);
    } catch (...) {
    }
}

And when I remark the main line

void Bar(int argc, char* argv[])
{
    try {
        //QApplication app(argc, argv);
    } catch (...) {
    }
}

I don't get any errors, and by errors I mean, of course, the application won't even start...

The main is:

int _tmain(int argc, _TCHAR* argv[])
{
    Bar(argc, reinterpret_cast< char ** >(argv));
}

Here is the error as displayed in the output:
'QtTest.exe' (Win32): Loaded 'C:\\workspace\\plugin\\TrdParty64\\Qt5Core.dll'. Module was built without symbols.
'QtTest.exe' (Win32): Unloaded 'C:\\workspace\\plugin\\TrdParty64\\Qt5Core.dll'
'QtTest.exe' (Win32): Loaded 'C:\\workspace\\plugin\\TrdParty64\\Qt5Core.dll'. Module was built without symbols.
'QtTest.exe' (Win32): Unloaded 'C:\\workspace\\plugin\\TrdParty64\\Qt5Core.dll'
The program '[8936] QtTest.exe' has exited with code -1073741701 (0xc000007b).

qwindows.dll (and qminimal.dll) need to be in platforms/ relative to your executable (or in your path)

Maybe that is the problem here?

Also make sure that all dll's are the right Qt version (for example 5.5.0 vs 5.5.1)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM