PDA

View Full Version : libstdcc++-6.dll Entry Point Not Found



gotronics
15th July 2017, 22:09
hi i am using Qt5.9.1 with desktop mingw53_32 on windows 7 64 bit.
my windows desktop application run very well in the ide environment, after deploy it using windeployqt and run i got this message

"The program can't start because libgcc_s_dw2-1.dll is missing from your computer .Try reinstalling the program to fix this problem"

then i went on to copy this missing from the desktop mingw53_32 compiler bin file and paste it in same folder together with rest of the needed files.

the following message surfaced

"The procedure entry point _ZdaPvj could not be located in the dynamic link library libstdc++-6.dll" but this right there .

may some please assist me.

high_flyer
15th July 2017, 23:51
Run the application in the IDE again, and have a look at the loaded modules view.
Find there which libstdc++-6.dll is used.
Then make sure your application loads the same libstdc++-6.dll when running out side of the IDE, it could be you have two libstdc++-6.dll libs, one version build with MinGW and the other by MSVC.

Infinity
16th July 2017, 01:00
Your application must link against the same standard lib as the Qt libraries. So you have to copy the library which is in the same directory where also the Qt libs are. This standard library used by the mingw compiler itself might not be compatible leading to issues like the message you've got.


one version build with MinGW and the other by MSVC

You're implying libstdc++, the C++ standard library of the GNU project, can be built with MSVC?

gotronics
16th July 2017, 15:34
Run the application in the IDE again, and have a look at the loaded modules view.
Find there which libstdc++-6.dll is used.
Then make sure your application loads the same libstdc++-6.dll when running out side of the IDE, it could be you have two libstdc++-6.dll libs, one version build with MinGW and the other by MSVC.

thank you for the help

how do I make sure when running outside ide it loads libstdc++-6.dll from same source and the other thing how do I access the loaded modules view.

hi

well I am using qt examples which guess are clean codes and what is TDD?

Added after 15 minutes:

hi

thank you very much I have just solved the problem few seconds ago I took libstdc++-6.dll from C:\Qt\Qt5.9.1\Tools\mingw530_32\bin.
how do I automate the automate the system to pick it from there?

thank you very much I have just solved the problem few seconds ago I took libstdc++-6.dll from C:\Qt\Qt5.9.1\Tools\mingw530_32\bin.
how do I automate the automate the system to pick it from there?

high_flyer
16th July 2017, 22:43
how do I automate the automate the system to pick it from there?
Usually copying the DLL to c:\windows\system32 should be enough.
If not, use regsvr32 to register the DLL.


well I am using qt examples which guess are clean codes and what is TDD?
The TDD text is part of my signature, not part of the post.
You can start reading about TDD here: https://en.wikipedia.org/wiki/Test-driven_development or search the books I mentioned in my signature.