CRTM_Forward_Module.f90:undefined reference to `__kmpc_global_thread_num'

Hello,
I’m trying to use CRTM in my code to do the simulations. I’ve linked the CRTM library to my code. The part of creating and filling CRTM structures is doing well. But when I try to call the function CRTM_Forward, the following errors pop out as I compile the code. Could you help me solve this issue?
Thanks!

Jun

crtm_v2.4.0/src/make.macros is included in the makefile for the compiler setting. in which LINUX_FLAGS = $(LINUX_FLAGS_INTEL).

After doing some search on google, I find the possible cause and solution.
The problem may be caused by not linked to mp library.
Adding -qopenmp after ifort would solve the issue.
Thanks!

Jun

Yes, for more recent CRTM versions (v2.4.0 and above) you need to link OpenMP and netCDF4 to your CRTM applications as well.