How to turn on OpenMP when using Qt creator

后端 未结 1 925
离开以前
离开以前 2021-02-15 18:03

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

相关标签:
1条回答
  • 2021-02-15 18:27

    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

    0 讨论(0)
提交回复
热议问题