Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Missing header files

Status
Not open for further replies.

buggs

Programmer
Joined
Jun 26, 1999
Messages
1
Location
CA
How come there are times when I get many errors related to header files that are in the program but the compiler will return with undefined printf(); or undeclared variables that are declared??<br>

 
I dont know what your particular situation is, but sometimes people write programs with multiple source files and only #include the header files in one or a few of the source files. Now you update a source file that has a reference to one of the functions in that header file and Build, it doesnt read the header file because none of the files that contain the #include for that header file are being recompiled.<br>
<br>

 
I think you should be more specific about your problem . But yes if your program consists of more than 1 source files , then you should be cautious about extern usage. And Conditional compilation. like usage of #define so that only once the file is included. <br><br>Does that answer your question ?<br>Thanx<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top