Re: include files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17 August 2011 22:10, Jason White wrote:
> Hello I have a problem, I have 2 header files that need to include
> each other (engine.h & controller.h). However when I try to compile it
> never seems to include controller.h in engine.h when controller.h
> includes engine.h.
>
> To get this to work correctly what do I have to do ? ( make changes to
> the preprocessors perhaps ?)

They can't both include each other. Either create a single file
containing everything needed, or extract the parts that are needed by
both into a separate file, e.g. common.h and then make engine.h
include common.h and controller.h include common.h


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux