Using OpenMP with Clang in Visual Studio 2013

    General discussion

  • Hi,

    I have to develop an application using OpenMP 4 or 4.5 because I need target to GPU. However, Visual Studio only support OpenMP 2.0 so I decided to use LLVM and Clang to compile my project. By this way, I downloaded this Windows snapshot build ( and changed the option Platform Toolset of my Visual Studio project. My problem is that although I am compiling my project with Clang i cant use OpenMP functions because when I include omp.h from this compiler, Visual Studio shows me the follow error:

        8    IntelliSense: more than one instance of overloaded function "omp_destroy_lock" has 'C' linkage    c:\LLVM\lib\clang\4.0.0\include\omp.h

    I am very confuse, could you help me?


    JuanMa J.R

    • Edited by Juanmajr93 Friday, September 30, 2016 10:47 AM
    Friday, September 30, 2016 10:45 AM