this simplest program gives error when compiled in release mode, but compiles fine in debug mode:
#include
int main(int argc, char* argv[
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.
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
):
... into the /debug and /release directories for the DEBUG and RELEASE configurations.