[Dune] Re: Frage.

Christian Engwer christi at uni-hd.de
Mon Oct 3 13:19:32 CEST 2005


I send the answer to the list, as I imagine other people might be
interested in this aswell.

> kannst Du mir mal kurz erkl?ren, warum man config.h nicht in andere 
> header files includen darf.

The question reads:
"Why must config.h not be included in other header files"

config.h belongs to the application and not to dune therefor dune
headers should not include config.h. This breaks a little bit the
common asumptions on header files, as these headers are not
selfconsistent with regard to the definitions in config.h. But as the
autoconf documentation states
"The package should `#include' the configuration header file before
 any other header files, to prevent inconsistencies in declarations
 (for example, if it redefines const)."

Hope this explaines it...
Christian





More information about the Dune mailing list