How to turn on OpenMP when using Qt creator
13,165
Try next in your .pro file
in case msvc2010
QMAKE_CXXFLAGS+= -openmp
QMAKE_LFLAGS += -openmp
or
QMAKE_CXXFLAGS+= -fopenmp
QMAKE_LFLAGS += -fopenmp
in case gcc
Author by
Jeanno
Updated on July 28, 2022Comments
-
Jeanno almost 2 years
If I am building the project from Qt creator using VS 2010 compiler, how do i enable OpenMP (when building from visual studio you just enable the feature) Thanks
-
Z boson almost 10 yearsMSVC's linker does not need or accept
-openmp
so you should not setQMAKE_LFLAGS += -openmp
.