I am trying to port my application to mingw64. It's a pretty big exe file which is dynamically linked against Qt-5.4.2 and Ogre-1.9.0. I use Qt-5.4.2 from the MSYS2 repository and I downloaded Ogre-1.9.0 from this package: http://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/mingw-w64-x86_64-ogre3d-hg-1.9.0.r6858.dd4dd5572adc-2-any.pkg.tar.xz/download and installed it with "pacman -U" (because the repository only contains Ogre-2.0 which is not compatible with my application). I also recompile Ogre-1.9.0 from the sources but got the same result (see below).
The point that when I start my application, I get this message:
error while loading shared libraries: libstdc++-6.dll: cannot open shared object file: No such file or directory
If I remove the code depending on OgreMain.dll and link it without OgreMain.dll, then it works.
libstdc++.dll is obviously there and used when I link without OgreMain.dll.
Any clue on where this problem may come from?
-Olivier
This can be other dll, not libstdc++.
Download Dependency Walker and open your exe with it. Maybe some other dll's are missing.
You saved my day! That was exactly what you pointed out and dependency walker was the right tool to use to debunk that. For the record, it was a 32 bit version of OpenAL32.dll which was causing the trouble. I owe you a good bier whenever you happen to visit Lausanne.
Cheers!
Last edit: Olivier Michel 2015-06-19