this simplest program gives error when compiled in release mode, but compiles fine in debug mode:
#include
int main(int argc, char* argv[
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.