Quote:
Originally Posted by shailesh012
How to create a header file for C...
Let us say I want to create a.h
I have created but how to move it to directory /usr/include
I am not able to save any file in to directory /usr/include
|
Why?
Normally, system provided shared API definitions are in /usr/include, and are referenced by "#include <name>" lines. If you are including an application API then you use '#include "name"' lines. Note the <> for system defined ones and "" for local application ones.
In addition, there is the -I option that tells the compiler where to look for includes that are not in the system provided ones.