I tried to use openmp code with the clang compiler as stated in
http://clang-omp.imtqy.com/
I downloaded the code via git and did make and make install . He successfully installed the clang compiler with openmp support. But when I try to compile a sample code (indicated in the link above), I get the following error:
/ usr / bin / ld: cannot find -liomp5
I did not specify the path to include and lib, as mentioned on the site, but I intend to specify them when compiling on the command line with the -L and -I options.
$ clang -I/usr/lib/gcc/i686-linux-gnu/4.6/include -fopenmp test.c -o test
However, I could not find the path for iomp5 lib, and therefore, I got the above error. Can someone please tell me how to resolve this?
source share