Re: Use preprocessor in header



Bryan Parkoff wrote:
I plan to create a library when I complete the implementation in both header code and source code. I declare variable and function in header code and I define variable and function in source code.
Do I truly need to use preprocessor if C Compiler does not need to recompile unmodified header code and source code?

Yes, if you want the compiler to include the header files.

What about pragma?

Yes, what about pragma?


--
Thad
.



Relevant Pages

  • Use preprocessor in header
    ... I declare variable and function in header code ... and I define variable and function in source code. ... extern int a; ... void do_test; ...
    (comp.lang.c)
  • Re: Use preprocessor in header
    ... header code and I define variable and function in source code. ... Do I truly need to use preprocessor if C Compiler does not need to ... Also you can skip the preprocessor stage in many compilers, ...
    (comp.lang.c)