Qt Creator退出,代码为-1073741819

时间:2013-10-25 19:23:01

标签: qt dll path qt-creator

尝试在Qt 5.1.1中运行我的应用程序的调试版本时,我得到了:

Starting C:\Users\Jared\Documents\Telkonet\serial_loader\branches\2.x\build-esu-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\esu.exe...
The program has unexpectedly finished.
C:\Users\Jared\Documents\Telkonet\serial_loader\branches\2.x\build-esu-Desktop_Qt_5_1_1_MinGW_32bit-Debug\debug\esu.exe exited with code -1073741819

exe文件的ldd显示:

$ ldd build-esu-Desktop_Qt_5_1_1_MinGW_32bit-Debug/debug/esu.exe
        ntdll.dll => /cygdrive/c/windows/SYSTEM32/ntdll.dll (0x7fed5810000)
        ntdll.dll => /cygdrive/c/windows/SYSTEM32/ntdll.dll (0x77b00000)
        wow64.dll => /cygdrive/c/windows/SYSTEM32/wow64.dll (0x77a40000)
        wow64win.dll => /cygdrive/c/windows/system32/wow64win.dll (0x77aa0000)
        wow64cpu.dll => /cygdrive/c/windows/system32/wow64cpu.dll (0x77a90000)
        ??? => ??? (0x2b0000)
        KERNEL32.DLL => /cygdrive/c/windows/SYSTEM32/KERNEL32.DLL (0x76b80000)
        ??? => ??? (0x2b0000)
        ??? => ??? (0x2b0000)
        KERNEL32.DLL => /cygdrive/c/windows/SYSTEM32/KERNEL32.DLL (0x76b80000)
        KERNELBASE.dll => /cygdrive/c/windows/SYSTEM32/KERNELBASE.dll (0x76ad0000)

我的路径变量包括:

C:\Qt\Qt5.1.1\5.1.1\mingw48_32\lib\;
C:\Qt\Qt5.1.1\Tools\QtCreator\bin\;
C:\Qt\Qt5.1.1\5.1.1\mingw48_32\bin\;
C:\Qt\Qt5.1.1\Tools\mingw48_32\bin\;

值得注意的是,在卸载Qt 4.8.4之后我刚刚安装了Qt 5.1.1。

更新

我查看了所有源代码,并将所有Q_WS_WIN实例替换为Q_OS_WIN。现在我明白了:

Starting C:\Users\Jared\Documents\Telkonet\serial_loader\branches\2.x\debug\debug\esu.exe...
The program has unexpectedly finished.
C:\Users\Jared\Documents\Telkonet\serial_loader\branches\2.x\debug\debug\esu.exe exited with code -1073741515

将所需的dll放入debug文件夹后,我再次收到错误代码1073741819。 Main()仍未到达。

1 个答案:

答案 0 :(得分:0)

经过多次探索,我发现这是我正在使用的boost库版本的一个问题。我下载并安装了最新的boost库版本。它现在正在运作。