title: How specify header file location to GCC on WSL
body: <p>I am using Ubuntu 18.04 on WSL through VSCode and trying to compile a C file called voltagereader.c using gcc. The code has the following dependency: <code>#include &lt;NIDAQmx.h&gt;</code></p>
  <p>But whenever I try to compile the code gives me an <code>gcc: error: NIDAQmx.h: No such file or directory</code> error even though the I am able to find the NIDAQmx.h file in this location on my pc: <code>C:\Program Files (x86)\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include</code></p>
  <p>On the WSL terminal I can find this file on this location: <code>/mnt/c/Program Files (x86)/National Instruments/NI-DAQ/DAQmx ANSI C Dev/include/NIDAQmx.h</code></p>
  <p>I tried multiple methods to compile the code including these and I keep getting the same error.</p>
  <blockquote>
  <p>gcc voltagereader.c -o voltagereader gcc voltagereader.c NIDAQmx.h -o
  voltagereader</p>
  <p>gcc voltagereader.c /mnt/c/Program Files (x86)/National
  Instruments/NI-DAQ/DAQmx ANSI C Dev/include/NIDAQmx.h -o voltagereader</p>
  <p>gcc -I voltagereader.c /mnt/c/Program\ Files\ (x86)/National<br />
  Instruments/NI-DAQ/DAQmx\ ANSI\ C\ Dev/include/NIDAQmx.h
  voltagereader.c NIDAQmx.h -o voltagereader</p>
  </blockquote>
  <p>How can I make sure that gcc can find this header file correctly?</p>