When CiftiLib is compiled with openmp the resulting library will depend on openmp libraries. Which means that when you link with the libCifti you need to provide openmp libraries or instructions to link with openmp libraries.
In the case of gcc/g++ passing -fopenmp to the compiler when linking is sufficient. Alternatively you would use -lgomp. With this branch the openmp flags are added to the cflags (if openmp is not available it will be as before). If you use that cflags at linking stage (as you should) the compiler should link properly with the appropriate openmp libraries.
When CiftiLib is compiled with openmp the resulting library will depend on openmp libraries. Which means that when you link with the libCifti you need to provide openmp libraries or instructions to link with openmp libraries.
In the case of gcc/g++ passing
-fopenmp
to the compiler when linking is sufficient. Alternatively you would use-lgomp
. With this branch the openmp flags are added to the cflags (if openmp is not available it will be as before). If you use that cflags at linking stage (as you should) the compiler should link properly with the appropriate openmp libraries.