title: GCC compile with mysql library
body: <p>when I try to compile a self written project in C with includes the mysql libraries I get this error:</p>
  
  <pre><code>gcc -c src/oDAO.c
  src/oDAO.c:4:23: fatal error: my_global.h: No such file or directory
  </code></pre>
  
  <p>I included the my_global.h as following:</p>
  
  <pre><code>#include &lt;my_global.h&gt;
  </code></pre>
  
  <p>The error comes up, because my system copied the header files to /usr/include/mysql/ and gcc is searching for system header files only in /usr/include (without subdirectories). How can I call gcc with adding /usr/include/mysql as additional shared library root?</p>
  
  <p>Here is my acutal Makefile:</p>
  
  <pre><code>all: main.o oDAO.o FileUtils.o DVDDAO.o
      gcc -Llib -o oDAO main.o oDAO.o FileUtils.o DVDDAO.o -llinkedlist -lncurses `mysql_config --cflags --libs` 
  
  main.o:
      gcc -c src/main.c
  
  oDAO.o:
      gcc -c src/oDAO.c
  
  FileUtils.o:
      gcc -c src/FileUtils.c
  
  DVDDAO.o:
      gcc -c src/DVDDAO.c
  
  clean:
      rm -f *.o
      rm -f oDAO
      rm -f *.bak
      rm -f *.~
  </code></pre>