My program has unexpectedly finished

后端 未结 2 1269
萌比男神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条回答
  •  猫巷女王i
    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.

提交回复
热议问题