Hi there,
I am trying to write a program using openMP but i am getting the following message when compiling:
/tmp/ccpvkTQn.o: In function `main':
parallel.c
.text+0x12): undefined reference to `omp_get_thread_num'
parallel.c
.text+0x33): undefined reference to `omp_get_num_threads'
collect2: ld returned 1 exit status
I am guessing that I am failing to link to the openMP libraries. How exactly do I do this?
Should it be something like:
gcc -lomp prog.c -o prog
Any help would be awesome!
Thanx
Mash