Quantcast
Viewing latest article 10
Browse Latest Browse All 51036

gcc find header files in current directories

I sometimes move my code around to various computers so I prefer to keep my header files in my current directory. Unfortunately it does not seem to be working.


$ gcc *.c -Wall
main.c:1:10: fatal error: mysql.h: No such file or directory
    1 | #include <mysql.h>
      |          ^~~~~~~~~
compilation terminated.


Viewing latest article 10
Browse Latest Browse All 51036

Trending Articles