954,479 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Query about Header file

Hello everyone, I have created my own header file but it doesn't work if i just include like "myfile.h" and it works fine if i include like "myfile.c". I just want to know that why this thing happening in Turbo C compiler even it works fine in VCpp.

rajenpandit
Newbie Poster
14 posts since Aug 2008
Reputation Points: 9
Solved Threads: 1
 

Be sure to make sure all of the files are in the same project, not indervidual just indervidual files, otherwise the compiler will not know to use myfile.c.

Chris

Freaky_Chris
Master Poster
702 posts since Apr 2008
Reputation Points: 325
Solved Threads: 118
 

All header files are taken from the include directory. May be the compiler is not responding because your newly created header file may not be in its search path.

csurfer
Posting Pro
568 posts since Jan 2009
Reputation Points: 485
Solved Threads: 88
 
All header files are taken from the include directory. May be the compiler is not responding because your newly created header file may not be in its search path.


when wraped in double quotes it is taken that the header file may be located in the same directory as the source file

Freaky_Chris
Master Poster
702 posts since Apr 2008
Reputation Points: 325
Solved Threads: 118
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You