LLVM / Clang 8 Compilation of OpenMP Code in Windows
问题 I'm using the Windows version of Clang (LLVM) 8 under Windows. I'm compiling a code which uses OpenMP. Under the lib folder of Clang there are 2 files which are OpenMP related: libomp.lib . libiomp5md.dll . My questions are: When I compile the code I use the flags -Xclang -fopenmp for the compiler. In in GCC and ICC using the flags tell the compiler to link the OpenMP library automatically. What about Clang? Does it do it automatically or must I link with libomp.lib manually? Is there a way