"_Z9qBadAllocv could not be located in the dynamic link library QtCore4.dll"
-
[quote author="Gerolf" date="1311079790"]If you compile with Qt 4.7.3, you also have to use the dlls of 4.7.3.[/quote]
Yes, of course. Try to find where is located your new 4.7.3 dll and add the path to their folder in your PATH. You must put it before any 4.5.3 folders, otherwise your application will try to launch will olds dll ...
-
[quote author="hahi-x" date="1311080087"]But where do I find the dll´s of 4.7.3? ;-)
[/quote]Search into your c:\Qt folder, is there a SDK folder or anything? you can search QtCore4.dll using your search file from Windows, and you will see where are all your dll folders
-
[quote author="Stavros Filippidis" date="1311073454"]To begin with, where did you copy these dll files from? Be aware that the dll files used by Qt Creator are NOT the one you executable is linked against! One simple way to check it is the fact that Qt-dll files of Qt Creator are 4.7.4 version, and the proper Qt-dll you link against (reside in another folder) are 4.7.3 version. ;-)
However, you should not copy the dll files in the Release folder! :-)[/quote]
So, it was what I told @hahi-x 2 hours ago in the quoted text! ;-)
You should know that Qt-dll files in folder C:\QtSDK\QtCreator\bin are for use from Qt Creator! I suppose this is why their version is higher (4.7.4)! The Qt-dll files that YOUR (desktop) executable is meant to link against are in the folder C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin (and their version is 4.7.3). :-)
-
[quote author="Gerolf" date="1311089904"]The easiest way would be put the correct dlls directly beside your executable and it should always work, regardeless of the path variable...[/quote]
and, most important thing, if you put dlls in your executable directory you are ready to distribute your application: if you send only your .exe to someone else, he will have the same problem; instead, if you distribute the whole directory with dll files, everything will work without having to install or set anything.