Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. "_Z9qBadAllocv could not be located in the dynamic link library QtCore4.dll"
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
32 Posts 9 Posters 24.0k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    hahi-x
    wrote on last edited by
    #17

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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sfilippidis
      wrote on last edited by
      #18

      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
      0
      • R Offline
        R Offline
        redkite
        wrote on last edited by
        #19

        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
        0
        • S Offline
          S Offline
          sfilippidis
          wrote on last edited by
          #20

          [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
          0
          • H Offline
            H Offline
            hahi-x
            wrote on last edited by
            #21

            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\bin

            C:\Users\Der Lars>

            Was it correct?

            1 Reply Last reply
            0
            • R Offline
              R Offline
              redkite
              wrote on last edited by
              #22

              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)

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hahi-x
                wrote on last edited by
                #23

                I changed C:\Qt\4.5\bin to C:\Qt\4.5\lib.

                But it doesn´t help. :-(

                Yesterday I downloadet my Version of Qtcreator. So I hope it is the newest. ;-)
                It is Qt 4.7.3

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  giesbert
                  wrote on last edited by
                  #24

                  If you compile with Qt 4.7.3, you also have to use the dlls of 4.7.3.

                  Nokia Certified Qt Specialist.
                  Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    hahi-x
                    wrote on last edited by
                    #25

                    But where do I find the dll´s of 4.7.3? ;-)

                    oh I found this directory on my pc. "C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin"

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      redkite
                      wrote on last edited by
                      #26

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

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        redkite
                        wrote on last edited by
                        #27

                        [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

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          hahi-x
                          wrote on last edited by
                          #28

                          Woow, it works. :-D

                          I changed the directory "C:\Qt\4.5\lib" to "C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin".

                          :-D Oh I´m so happy :-D

                          Thank´s to everyone and have a nice day. :-)

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            redkite
                            wrote on last edited by
                            #29

                            You're welcome ;-)

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              sfilippidis
                              wrote on last edited by
                              #30

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

                              https://www.filippidis.name/

                              1 Reply Last reply
                              0
                              • G Offline
                                G Offline
                                giesbert
                                wrote on last edited by
                                #31

                                The easiest way would be put the correct dlls directly beside your executable and it should always work, regardeless of the path variable...

                                Nokia Certified Qt Specialist.
                                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                                1 Reply Last reply
                                0
                                • P Offline
                                  P Offline
                                  p91paul
                                  wrote on last edited by
                                  #32

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

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved