You can tell gcc in which directories to look for those header files (use the -I (capital i) option), but the default location for header files (/usr/include) is used automatically, so you don't have to add that. Whenever the source code saysgcc will search the include directories for foo.h. To make sure you have foo.h, the header file for libfoo, installed on your system, you have to install the development version of libfoo:
Code:
sudo apt install libfoo-dev
Whenever the source code saysgcc will search for bar.h in the same directory as the source code.
Bookmarks