Include a header file, but where does the header file look in?
HI,
If i include a header file, where does the header file ( or more correctly - the compiler ) look in to find the function definitions and stuff that are declared in the header file? Because header file is only for declaring things, the actual code must reside somewhere else? I know the standard libraries reside in the "Include" directory in the compiler's directory. But if i have a custom source file and a header file, i include the header file, but where should i put the custom source file so it can be found by the compiler? The Include dir? Anywhere else?
thnx thnx
A more polished version...
A better way of putting preludes answer....(i guess)
When you #include a header file inclosed in < >, the compiler looks for that header file in the INCLUDE DIRECTORY PATH specified in ur configuration file. But if u include the header file enclosed in " " then the C-Compiler will look for the header file in the current directory. therefore u can also #include ur custom headers in the following way..
#include"..\myproj\defs.h"
Hope you got the point...
Regards,
Sriharsha.