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
- Taking out all fopenmp in my .pro file - leading to loads of errors
- Updated pthreadGC2.dll according to the instructions https://www.barbato.us/2011/02/07/openmp-qtcreator-windows-when-mingw-compiler/ - that had no impact
- 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 https://www.youtube.com/watch?v=9JTooLxhmC0
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 guiQMAKE_CXXFLAGS += -std=c++11
#QMAKE_CXXFLAGS += -std=c++0xDEFINES +=
CASL_THROWS #
DEFINES += CASL_OPENMPmessage($${CONFIG})
contains(DEFINES,CASL_OPENMP){
QMAKE_CXXFLAGS += -fopenmp -march=native
QMAKE_LFLAGS += -fopenmp
LIBS+=-fopenmp
}Then I go on defining the
DEPENDPATH, INCLUDEPATH, HEADERS and SOURCES -
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).
-
I was referring to OpenMP.
No, you don't need to rebuild all your dependencies each time you build your application.