This is more of a GCH toolchain question than a C question (although most C compilers use the same Unixy flags).
The brackets around the include file ( <>
) indicate that you want the compiler to search for a standard search path for the include file. Thus, you can access this new include file either by placing it in a directory on your standard file search path, or by adding its directory to the file search path. With GCC, you do the latter by providing the gcc flag -I"directoryname"
, where "directory_name" is the full path to the file where you store this new include file.
Once your compiler finds this, your linker may have the same problem with the library file itself ("liblsusb.a"?). You are correcting the same. The GCC linker flag will need -L
instead of -I
.
source share