Undefined reference to `omp_get_max_threads_’

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.

Leave a Comment