Clion中出现: undefined reference to `omp_get_wtime' 错误,需修改CMakeLists.txt 文件
做并行开发时,用到了omp.h头文件,直接在Clion中编译时出现undefined reference to `omp_get_wtime' 错误。#include <omp.h>这时候需要修改CMakeLists.txt 文件,如下:set(CMAKE_C_STANDARD 99)FIND_PACKAGE( OpenMP REQUIRED)if(OPENMP...
原创
2019-04-30 17:52:20 ·
3478 阅读 ·
2 评论