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>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.