I am new to mp opening and I tried a sample program from the official site
#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());
}
and I installed the library in eclipse as libgomp in the project Properties-> GCC C ++ linker -
but the program says /usr/bin/ld: cannot find -llibgompmaybe I know where I'm wrong
source
share