accessing headers

what does this mean and does it depend on OS?

$g++ -I/usr/local/include main.cpp
This includes the path /usr/local/include in the list of paths to be searched for the header files.

Yes the directory structure seems to be specific to the Linux OS.
The -I command adds a directory where it will search for header files. It works the same on all operating systems, but of course the directory might not be the same. In this case /usr/local/include looks like it's being used on a Linux system.

https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Directory-Options.html
thanks
Topic archived. No new replies allowed.