I\'m getting the following errors trying to compile a project: (fortran, using gfortran)
undefined reference to `omp_get_max_threads_\' undefined
undefined reference to `omp_get_max_threads_\'
undefined
gcc -program.c -o obj -fopenmp
With gcc, you need to compile and link with -fopenmp to enable OpenMP. Other compilers have different options; with intel it's -openmp, with pgi it's -mp, etc.
-fopenmp
-openmp
-mp
The code needs to be compiled with -fopenmp.