g++ -fopenmp main.cpp抱怨未定义的引用为std::vector。如何解决这个问题? 我在Ubuntu上安装了libomp-dev软件包。 的main.cpp #include<vector>
#include<iostream>
template<typename T, typename A>
T recursiveSumBody(std::vector<T, A> &
我正在研究使用Omp的'C'并行编程。在我的模块阵列求和parallel.c我包括第一,作为请求,文件hpc.h是在我的C文件相同的文件夹,并包含以下代码: /*This header file provides a function double hpc_gettime() that returns the elaps
ed time (in seconds) since "the epoch