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
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With