title: How would I go about linking libcsv library to my GCC compiler?
body: <p>I'm working on a project that requires parsing of a csv file, and I dicided to use rgamble's libcsv library for this job.</p>
  <p>I followed through his install guide:</p>
  <blockquote>
  <pre><code>./configure
  make
  make check
  make install
  </code></pre>
  </blockquote>
  <p>and it seems that everything was install properly. I have even updated, upgraded, and install build-essential to my ubuntu and debian WSL terminals to try to get this to work.</p>
  <p>For some reason, when attempting to compile my files, using the following command</p>
  <blockquote>
  <p>gcc -g -Wall -L./libcsv -libcsv *.c -o main</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>gcc -g -Wall *.c -Llibcsv -o main -llibcsv</p>
  </blockquote>
  <p>I'm always presented with this compiling error:</p>
  <blockquote>
  <p>In file included from WriterProcess.c:1:<br />
  headers.h:14:10: fatal error: libcsv/csv.h: No such file or directory
  14 | #include &lt;libcsv/csv.h&gt;<br />
  |          ^~~~~~~~~~~~~~<br />
  compilation terminated.<br />
  In file included from main.c:1:<br />
  headers.h:14:10: fatal error: libcsv/csv.h: No such file or directory
  14 | #include &lt;libcsv/csv.h&gt;<br />
  |          ^~~~~~~~~~~~~~<br />
  compilation terminated.</p>
  </blockquote>
  <p>my header look like so:</p>
  <pre><code>// core
  #include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  // #include &lt;wiringPi.h&gt;
  #include &lt;unistd.h&gt; // sleep
  #include &lt;errno.h&gt;
  
  // WriterProcess
  #include &lt;stdlib.h&gt; // sizeof
  #include &lt;dirent.h&gt; // file handling
  
  // External Library for CSV
  #include &lt;libcsv/csv.h&gt;
  </code></pre>
  <p>Yeah, I'm pretty stuck, so any help is very appreciated!</p>
  <p>edit:
  re-read the isntructions again, and found my mistake, but the problem still persists.</p>
  <p><a href="https://i.stack.imgur.com/Z8b4G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z8b4G.png" alt="enter image description here" /></a></p>