I'm aware that when using #include <file>
the compiler will search in defined system directories for file
. How can I view these directories?
I ask because I added a directory with a bunch of header files into /usr/local/include, and when I #include <file>
the compiler still says error: unknown type name ‘TPM_TAG’
. I suspect that /usr/local/include isn't in the compiler's list of directories to search.
Thanks!
-I
flag to pass include directories. – devnullgcc -v
should show you where it's looking. – Keith Thompson#include <file>
). So I put this directory in /usr/local/include and included them with#include<file>
, and I get theunknown type name
error. I tried removing my #include statement to see what would happen, and I got the same error. This makes me think the compiler is not finding the directory of header files in /usr/local/include. @KeithThompson, which option of that output provides the directory? – Rob