My program has unexpectedly finished

后端 未结 2 1270
萌比男神i
萌比男神i 2021-01-27 02:00

this simplest program gives error when compiled in release mode, but compiles fine in debug mode:

#include 

int main(int argc, char* argv[         


        
相关标签:
2条回答
  • 2021-01-27 02:21

    Value -1073741511 is 0xC0000139 hexadecimal, which is error code STATUS_ENTRYPOINT_NOT_FOUND. This means that some DLL is loaded by EXE or another DLL, but it lacks a function that EXE or another DLL is expecting there.

    Event Viewer may show you what DLL is lacking what function when the error occurs. Dependency Walker will also show you this, and the whole DLL structure as well.

    0 讨论(0)
  • 2021-01-27 02:23

    In most cases this is because the necessary .dll files that the executable is looking for are missing.

    The most straightforward approach is to copy the following files from your Qt installation (e.g. C:\Qt\Qt5.4.2\5.4\mingw491_32\bin):

    • icudt53.dll
    • icuin53.dll
    • icuuc53.dll
    • libstdc++-6.dll
    • Qt5Core.dll

    ... into the /debug and /release directories for the DEBUG and RELEASE configurations.

    0 讨论(0)
提交回复
热议问题