"_Z9qBadAllocv could not be located in the dynamic link library QtCore4.dll"
-
A solution to this problem was proposed in "this thread":http://developer.qt.nokia.com/forums/viewthread/348
-
Volker, thank for replying to my post. The solution you reference has someone replying:
_Just for the reference – that should be “make distclean”
You compiled your application against a Qt version that was built with exception support, but then try to partially link it again against a Qt version without exception support.
When you switch Qt versions like that, you should always run “make clean” to do a clean build._
But I don't know where I would write that. I'm just compiling the dynamically linked thing on Qt Creator's drop down menu at the top of the screen that says "Build All" or "Build Project 'fetchmore'" or occasionally I'll run "Clean All" before trying either of that.
If someone is recommending that I run a "make distclean" or a "make clean," I don't know where the drop down is for that.
(In the interim I'll try what Zlatomir has proposed. Thank you all for responding.)
-
I´m sorry for open this old conversation again but I´m hanging on the same problem and I don´t know how do i solve this problem.
I´m a very newby in Qt. Where do I have to type in "clean all" or "make clean"?
A german solution would be perfect if you Guys are german. ;-)
-
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! :-)
-
No you do not! I made the hypothesis that you followed EXACTLY the approach of the initial poster!
So your problem is when you run the executable from within Qt Creator (e.g.: by pressing the "Play" button?).
Try this: if your project is named XYZ, do you see a folder named XYZ-build-release (if you build release) or XYZ-build-debug? If yes, delete this folder and try again! ;-)
-
hmm, so from beginning: :-D
I installed Qtcreator on my Windows Pc.
After this I watched this youtube Video:
http://www.youtube.com/watch?v=QLT7oEt6gLE&feature=player_profilepageI did exactly the same like in this Video.
When I press the green button in QtCreator it works fine.
The I opened the Folder "...\interactiveHelloWord-build-desktop\debug"
and found the "interactiveHelloWord.exe".
when I start these .exe file I get an Error-Message wich says "_Z9qBadAllocv" was not found in DLL "QtCore4.dll"In German the message says: "Der Prozedureinsprungspunkt "_Z9qBadAllocv" wurde in der DLL "QtCore4.dll" nicht gefunden.
-
I make the hypothesis that PATH in your machine is pointing at the wrong dll files!
-
To begin with, open a command prompt (Start-->Run-->type cmd and enter) and give the command
path
-
You need to add to the current path the location of Qt-dll files (the development ones!).
-
[quote author="redkite" date="1311077608"]I think you missunderstood Stavros Filippidis, please execute the command path in your command prompt and paste here the result.
exemple :
@C:>path
PATH=c:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE;c:\Program Files...@[/quote]Yes, your hypothesis makes sense! :-)
-
Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation. Alle Rechte vorbehalten.C:\Users\Der Lars>path
PATH=C:\msys\bin;C:\MinGW\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32
\Wbem;C:\Program Files\CyberLink\Power2Go;C:\Windows\System32\WindowsPowerShell
v1.0;C:\Boost\lib;C:\Qt\4.5\binC:\Users\Der Lars>
Was it correct?
-
bq. Was it correct?
Yes, thank you.
Normally, your problem is that your executable is looking after QtCore.dll and QtGui.dll (may be more) and it is finding wrong one in C:\Qt\4.5\bin (the last item in your path list).
You can try to launch your application after you have added C:\Qt\4.5\lib at the beginning of your PATH. (help for updating your PATH variable : "How to":http://www.computerhope.com/issues/ch000549.htm)
Have you several Qt version installed on your computer? If so, which one are you using for building your app in QtCreator? (you can check it by opening your project in QtCreator and click on "Project" in the left area)