Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. "InterlockedCompareExchange@12" not be found in DLL "libstdc++6.dll"

"InterlockedCompareExchange@12" not be found in DLL "libstdc++6.dll"

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 6.7k 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.
  • M Offline
    M Offline
    my-tien
    wrote on last edited by
    #1

    Hey,
    I use Qt5.1.0 with mingw48_32 on Windows 7 64bit. For some reason I had to add another compiler version. I downloaded Mingw 32 bit with gcc 4.7.2 and added it as custom compiler to Qt Creator.
    I configured it as follows:

    name: MinGW4.7

    path to compiler: C:\MinGW\bin\g++.exe

    path to make: C:\MinGW\bin\mingw32-make.exe

    ABI: x86-windows-msys-pe-32bit

    header path: C:\MinGW\include

    Then I created a custom Kit which makes use of the custom compiler.

    When I compile my project with this kit, and later click on the generated .exe file, I receive an error similar to this (translated from German):

    "InterlockedCompareExchange@12" could not be found in DLL "libstdc++6.dll"

    What might this be? And how can I solve it? Did I add the custom compiler wrongly?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      my-tien
      wrote on last edited by
      #2

      I should add, that the compiler works without problems for other projects that are not Qt related.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        AFAIK, you can't mix libraries built with MinGW 4.7 and MinGW 4.8

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • M Offline
          M Offline
          my-tien
          wrote on last edited by
          #4

          Yes, that was my guess, too. So is there a way to have Qt with MinGW 4.7 other than recompile Qt?

          For now I simply replaced the incompatible 4.7-.dlls with the 4.8 counterparts, namely libgomp-1.dll and libstdc++6.dll. I hope, no further problems occur...

          Thanks for the response!

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            AFAIK, no, you'll need to rebuild Qt

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            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