title: icpc: command line error: option '-openmp' not supported
body: <p>I am trying to compile simple code using openmp.</p>
  
  <p>Here is the code (file test.cpp):</p>
  
  <pre><code>int main()
  {
      double a[100];
      #pragma omp parallel for
      for (int i = 0; i &lt; 100; ++i) {
          a[i] = i;
      }
      return 0;
  }
  </code></pre>
  
  <p>I compile using the following command:</p>
  
  <pre><code>icpc -openmp test.cpp
  </code></pre>
  
  <p>the result is:</p>
  
  <pre><code>icpc: command line error: option '-openmp' not supported
  </code></pre>
  
  <p>OS Debian X64</p>
  
  <p>Can you help me please?</p>
  
  <p><strong>Update:</strong> </p>
  
  <p>using -fopenmp gives the same error.</p>
  
  <p>From here: <a href="https://software.intel.com/en-us/node/522690" rel="nofollow">https://software.intel.com/en-us/node/522690</a></p>
  
  <p>Command-Line Examples, Linux*
  To compile and link (build) the entire application with one command using the Intel OpenMP libraries, specify the following Intel® C++ Compiler command on Linux* platforms:</p>
  
  <p>C source</p>
  
  <p>icc -openmp hello.c</p>
  
  <p>C++ source</p>
  
  <p>icpc -openmp hello.cpp</p>
  
  <p><strong>UPDATE2:</strong></p>
  
  <p>-qopenmp gives the same error.
  I installed intel system studio, and use the compiler from /opt/intel/bin. In PATH there is nothing related to intel. Maybe i should add somethin to PATH for intel to recognize that it can use openmp. I have tried only adding to PATH /opt/intel/bin.</p>