This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

error in multi core programming

hi all,

i am new to multi core programming. i've included omp.h header file in my program. i've set the number of threads to 2  using  omp_set_num_threads(2). now while calling a function which has no dependencies..
i've used

#pragma omp parallel

{

 function(parameter1,parameter 2,..)

}

it is showing a build error  at #pragma omp parallel. it is showing that the build was not made due to "unresolved symbols.."  is my approach right? help me..

thanks in advance