【发布时间】:2010-10-11 09:05:13
【问题描述】:
我是打开 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());
}
我已经在项目 Properties->GCC c++ 链接器中将 Eclipse 中的库设置为 libgomp-
但是程序说/usr/bin/ld: cannot find -llibgomp我能知道我错在哪里
【问题讨论】:
标签: c++ c linker shared-libraries openmp