How to turn on OpenMP when using Qt creator

后端 未结 1 924
离开以前
离开以前 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)
提交回复
热议问题