C++
友人小A
四级社畜
展开
-
GDB Summary
无原创 2022-09-21 17:47:41 · 102 阅读 · 0 评论 -
undefined reference to `omp_get_wtime‘
做并行开发时,用到了omp.h头文件,直接在Clion中编译时出现undefined reference to `omp_get_wtime' 错误。#include <omp.h>这时候需要修改CMakeLists.txt 文件,如下:转载 2021-11-02 14:11:14 · 1420 阅读 · 0 评论 -
error: ‘iota’ is not a member of ‘std’
CmakeLists.txt在c++程序中添加头文件:#include <numeric>原创 2021-11-02 14:09:09 · 2162 阅读 · 0 评论