Original Post
Hi there,
I have a strange problem. I'm getting on with OpenMP, however I get error messages when I am trying to use omp functions:
So the code isn't especially complicated but I get an error:
I have read OpenMP manual and there's not mentioned that omp requires any additional libs or dlls.
So what is wrong?
I am using GCC here.
Regards,
Misery
I have a strange problem. I'm getting on with OpenMP, however I get error messages when I am trying to use omp functions:
#include <iostream>
#include <omp.h>
using namespace std;
int main()
{
std::cout<<omp_get_num_procs()<<std::endl;
std::cout << "Finished" <<std::endl;
return 0;
}
So the code isn't especially complicated but I get an error:
undefined reference to `omp_get_num_procsI have read OpenMP manual and there's not mentioned that omp requires any additional libs or dlls.
So what is wrong?
I am using GCC here.
Regards,
Misery