小编raj*_*aja的帖子

OpenMP库规范

我是新手打开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我能知道我错在哪里

c c++ linker shared-libraries openmp

3
推荐指数
1
解决办法
3612
查看次数

标签 统计

c ×1

c++ ×1

linker ×1

openmp ×1

shared-libraries ×1