📜  dlopen 失败:找不到库“libomp.so” - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:54.919000             🧑  作者: Mango

代码示例1
#I have changed flags in CMakeLists.txt as following:
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fopenmp -static-openmp")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp -static-openmp")