Search code examples
qtqt-creatorqt5mingw32libstdc++

Qt:exe file not running


I started using Qt 5.1 with MinGW on Windows 7. I use QtCreator to create the application in debug mode. When I run the exe of any application as a standalone it shows the following error...how ever the same application runs smoothly when I open QtCreator IDE and run it ...I tried setting the environment variable PATH to the bin of the QTCreator and MinGW bin (which QtCreator uses) I am new to this windows environment and MinGW.. any suggestions are welcome...

enter image description here


Solution

  • Maybe this is related to the fact that the dynamic linker is not able to find the correct libraries you built your executable with? Try to place all the needed libs into the same dir with the executable and then run it.

    If you need to know what are all the needed libs you probably can use dependency walker or ldd from cygwin.