Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    "_Z9qBadAllocv could not be located in the dynamic link library QtCore4.dll"

    General and Desktop
    9
    32
    21119
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ec31 last edited by

      _"The procedure entry point Z9qBadAllocv could not be located in the dynamic link library QtCore4.dll"

      The only files inside \Release:

      -- fetchmore.exe [dynamically compiled with no errors]
      -- libgcc_s_dw2-1.dll
      -- mingwm10.dll
      -- QtCore4.dll

      Only 27 references to this on Google. I'm running Windows 7 Professional on a new ThinkPad. These kinds of problems (not this one in particular) are also not new--while I've never had problems creating Releases for Windows in Qt3, I've never had any successes doing the same in Qt4.

      Thanks for any assistance.

      1 Reply Last reply Reply Quote 0
      • Zlatomir
        Zlatomir last edited by

        The application runs fine when you run it form Creator? i talk about the Run button (the green one)
        If it does, then you need to make sure that you copy the right dll's.
        For the 2010.05 SDK the path is: C:\Qt\2010.05\qt\bin and the dll's from C:\Qt\2010.05\bin (without qt) don't work (are only used by Creator)
        For the Beta SDK the path is: C:\QtSDK\Desktop\Qt\4.7.2\mingw\bin

        https://forum.qt.io/category/41/romanian

        1 Reply Last reply Reply Quote 0
        • U
          ucomesdag last edited by

          According to c++filt _Z9qBadAllocv = qBadAlloc()

          Write “Qt”, not “QT” (QuickTime).

          1 Reply Last reply Reply Quote 0
          • G
            goetz last edited by

            A solution to this problem was proposed in "this thread":http://developer.qt.nokia.com/forums/viewthread/348

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply Reply Quote 0
            • E
              ec31 last edited by

              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.)

              1 Reply Last reply Reply Quote 0
              • G
                goetz last edited by

                "clean all" in the menu issues a make clean behind the scenes, so you were on the right path.

                Zlatomir is right, though - you must provide all the needed libs/DLLs

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply Reply Quote 0
                • H
                  hahi-x last edited by

                  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. ;-)

                  1 Reply Last reply Reply Quote 0
                  • R
                    redkite last edited by

                    Right click on your project in QtCreator (in the project tree list, where you see files of your project)
                    And there, click on the clean item of the popupmenu.

                    1 Reply Last reply Reply Quote 0
                    • H
                      hahi-x last edited by

                      I did it, but it does not solve my problem. :-(

                      1 Reply Last reply Reply Quote 0
                      • S
                        sfilippidis last edited by

                        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! :-)

                        https://www.filippidis.name/

                        1 Reply Last reply Reply Quote 0
                        • H
                          hahi-x last edited by

                          I didn´t copy any dll file.
                          Do I have to copy dll files into the project folder?

                          1 Reply Last reply Reply Quote 0
                          • S
                            sfilippidis last edited by

                            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! ;-)

                            https://www.filippidis.name/

                            1 Reply Last reply Reply Quote 0
                            • H
                              hahi-x last edited by

                              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_profilepage

                              I 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.

                              1 Reply Last reply Reply Quote 0
                              • S
                                sfilippidis last edited by

                                I make the hypothesis that PATH in your machine is pointing at the wrong dll files!

                                https://www.filippidis.name/

                                1 Reply Last reply Reply Quote 0
                                • H
                                  hahi-x last edited by

                                  That could be possible but where do I check and change it?

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    sfilippidis last edited by

                                    To begin with, open a command prompt (Start-->Run-->type cmd and enter) and give the command

                                    path

                                    https://www.filippidis.name/

                                    1 Reply Last reply Reply Quote 0
                                    • H
                                      hahi-x last edited by

                                      In command promt the path is "C:\Users\Der Lars"

                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        sfilippidis last edited by

                                        You need to add to the current path the location of Qt-dll files (the development ones!).

                                        https://www.filippidis.name/

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          redkite last edited by

                                          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...@

                                          1 Reply Last reply Reply Quote 0
                                          • S
                                            sfilippidis last edited by

                                            [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! :-)

                                            https://www.filippidis.name/

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post