[En-Nut-Discussion] Suggestion for C++ initialisation change.

Oliver Schulz olischulz at web.de
Sun Feb 27 11:58:34 CET 2005


Hi Harald, 

> 
> >To Harald: Perhaps I missed something, but I think the files 
> >cfg/arch/avr.h and cfg/arch/avrpio.h must also be included in 
> >avr_nutinit.c to have the EEPROM emulation also compiled, right?
> 
> You're right about cfg/arch/avr.h.
> 
> cfg/arch/avrpio.h is included by the cfg/arch/avr.h.
> 

Right, /include/cfg/arch/avrpio.h is included in /include/cfg/arch/avr.h

But if I use the nutconf utility to make a build directory, there is also an
include directory (/BUILD/include) with a higher precedence during
compilation. For that reason "#include <cfg/arch/avr.h>" will include the
file /BUILD/include/cfg/arch/avr.h, an in that file (automatically generated
by nutconf) is no inclusion for avrpio.h.

It's sometimes a little bit confusing to have two compiling environments.
One directly in source directories, and the other using the nutconf util and
a BUILD directory...

Cheers,
Oliver.




More information about the En-Nut-Discussion mailing list