title: How can I use openmp in android studio
body: <p>I use android-ndk-r10d to code with C++ in android studio. Now I want to use openmp and I add the codes into Android.mk:</p>
  
  <pre><code>LOCAL_CFLAGS += -fopenmp
  LOCAL_LDFLAGS += -fopenmp
  </code></pre>
  
  <p>and add the codes into myapp.cpp:</p>
  
  <pre><code>#include &lt;omp.h&gt;
  #pragma omp parallel for
  for(int i = 1, ii = 0; i &lt; outImage[0]-&gt;height; i+=2, ii = i&gt;&gt;1) {
   /* Do work... */
  }
  </code></pre>
  
  <p>but  gradle build finished with error just because of the [#pragma omp parallel for]
  How can I handle the syntax error ?</p>