Dear all, 
I have just downloaded the file codeblocks-17.12mingw-setup.exe and installed it on my Windows 7. The file is installed very well on my computer. Moreover, I added some properties as follows:
1) Compiler settings -> Other compiler options -> -fopenmp
2) Linker settings -> Other linker options -> -lgomp -pthread
Everything is fine now. But I try to compile the following file:
#include <omp.h>
#include <stdio.h>
#include <stdlib.h>
int main (int argc, char *argv[])
{
int nthreads, tid;
#pragma omp parallel private(nthreads, tid)
  {
  tid = omp_get_thread_num();
  printf("Hello World from thread = %d\n", tid);
  if (tid == 0)
    {
    nthreads = omp_get_num_threads();
    printf("Number of threads = %d\n", nthreads);
    }
  }
}
My issue is cannot find -lgomp. 
Could someone please help me to fix this problem?
many thanks