|OpenMP and Eclipse [message #901477]
||Sun, 12 August 2012 22:37
| Andi Maier
Registered: July 2012
HI all, |
I have currently some problems with OpenMP and Eclipse Juno.
I have installed the MINGW C Compiler and managed to run a program with PThreads. However, I tried to run a program with OpenMP which does not work.
My programm is the following:
int main(int argc, char **argv)
#pragma omp parallel private(id)
printf("%d: Hello World!\n", id);
and I receive the following output:
Info: Internal Builder is used for build
gcc -O0 -g3 -Wall -c -fmessage-length=0 -fopenmp -o tt.o "..\\tt.c"
gcc -fopenmp -o OpenMP.exe tt.o
tt.o: In function `main':
C:\Users\Andi\workspace C\OpenMP\Debug/../tt.c:16: undefined reference to `_GOMP_parallel_start'
C:\Users\Andi\workspace C\OpenMP\Debug/../tt.c:16: undefined reference to `_GOMP_parallel_end'
tt.o:C:\Users\Andi\workspace C\OpenMP\Debug/../tt.c:18: undefined reference to `_omp_get_thread_num'
collect2.exe: error: ld returns 1 as end-status
I think that it is something to do with the library libgomp since the functions are defined in that library but I cannot figure what.
It would be great if somebody could help me!
[Updated on: Sun, 12 August 2012 22:38]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01747 seconds