Nominate our 2022 Qt Champions!

exited with code -1073741510

  • Hello
    I'm running a c++ code with a fellow coworker. I'm using Qt 5.3 on Windows 8 he is using Qt on Linux. The code works great when he runs it and I have no problems build the project but when I run it always crashes with the error exited with code -1073741510.

    After googling for a day (I find similar errors but never exactly the same one) I have tried

    1. Taking out all fopenmp in my .pro file - leading to loads of errors
    2. Updated pthreadGC2.dll according to the instructions - that had no impact
    3. Since the step in 2. had no impact I thought I would make sure the updated .dll was known by adding to .pro
      LIBS += "C:/Windows/System32/pthreadGC2.dll"
      according to
      This gives and error message File not recognized: File format not recognized

    So now I feel as if I have tried all the tricks Google suggests and at loss. I have a feeling the error is somehow due to fopenmp and Windows not getting a long, but might be wrong.

    Do you have any idea what might be causing this inconsistency? And how to fix it?

    I'm not a programmer, just a scientist coding for my research so I would greatly appreciate any hints (and in easy to an follow English for coding newbies).

    Thanks in advance!

    My .pro file is as follows (I only show the beginning since I'm sure the rest is correct and should not be causing the problem)

    TEMPLATE = app
    CONFIG += console
    CONFIG -= qt gui

    QMAKE_CXXFLAGS += -std=c++11
    #QMAKE_CXXFLAGS += -std=c++0x

    DEFINES +=


    QMAKE_CXXFLAGS += -fopenmp -march=native
    QMAKE_LFLAGS += -fopenmp

    Then I go on defining the

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you check that that library was compiled with the same compiler you are currently with Qt ?

  • @SGaist
    Thank you and thanks for a fast reply!

    What library are you referring to? All my code was at least compiled with the same compiler the Qt default = MinGW 32 bit. I'm not sure about OpenMp. Is that done once and for all (then I don't recall doing it, can I check what compiler was used somehow) or is that done every single time I run the code (if so where do I set it, I don't have any other settings in my .pro file than listed above)?

    Sorry if those are trivial questions I'm just really lost (and if they are trivial can you, please, point out where I can read about it).

  • Lifetime Qt Champion

    I was referring to OpenMP.

    No, you don't need to rebuild all your dependencies each time you build your application.

Log in to reply