943,579 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 446
  • C RSS
Feb 4th, 2009
0

Query about Header file

Expand Post »
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.
Similar Threads
Reputation Points: 9
Solved Threads: 1
Newbie Poster
rajenpandit is offline Offline
13 posts
since Aug 2008
Feb 4th, 2009
0

Re: Query about Header file

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
Reputation Points: 325
Solved Threads: 118
Master Poster
Freaky_Chris is offline Offline
702 posts
since Apr 2008
Feb 4th, 2009
0

Re: Query about Header file

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.
Reputation Points: 485
Solved Threads: 88
Posting Pro
csurfer is offline Offline
564 posts
since Jan 2009
Feb 4th, 2009
0

Re: Query about Header file

Click to Expand / Collapse  Quote originally posted by csurfer ...
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
Reputation Points: 325
Solved Threads: 118
Master Poster
Freaky_Chris is offline Offline
702 posts
since Apr 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Help please c sockets in unix
Next Thread in C Forum Timeline: 40 Column Text Mode problem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC