我是新手打开mp,我尝试了一个来自官方网站的示例程序
#include <omp.h>
#include <stdio.h>
int main() {
#pragma omp parallel
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
}
Run Code Online (Sandbox Code Playgroud)
我已经在eclipse中将库设置为项目属性 - > GCC c ++链接器中的libgomp-
但程序说/usr/bin/ld: cannot find -llibgomp我能知道我错在哪里