My gcc compiles well, but clang fails with the following message:
clang -fopenmp=libomp -o main main.c
main.c:5:10: fatal error: 'omp.h' file not found
I also installed libomp5
package and changed flag to -fopenmp=libomp5
, though it didn't help either:
clang -fopenmp=libomp5 -o main main.c
clang: error: unsupported argument 'libomp5' to option 'fopenmp='
clang: error: unsupported argument 'libomp5' to option 'fopenmp='
these recommendations didn't work.
Would be grateful for hints on installing necessary 16.04 specific packages and passing corresponding flags.