[Tinyos-help] avr-gcc cannot locate sys/types.h
Greg Hackmann
gwh2 at cse.wustl.edu
Wed Mar 12 08:58:35 PDT 2008
Elvar Ólafsson wrote:
> Hi everyone.
>
> I have a small problem with my tiny os program. This program tries to
> include sys/types.h but the compilation fails since avr-gcc cannot
> locate the header file. How can I force avr-gcc to include files from
> /usr/include/?
You generally can't do this. avr-gcc uses a specialized implementation
of libc called avr-libc which contains only a subset of the
functionality in the standard GNU libc. Header files in /usr/include
could declare functions or structures that conflict with the avr-libc
definitions, or that actually aren't present in avr-libc at all.
Note that TinyOS automatically #includes a number of system header
files, including the header file that defines the standard integer types
(uint8_t, int16_t etc.) It's pretty rare that you'll ever need to
explicitly #include a file outside of the TinyOS tree.
Greg Hackmann
More information about the Tinyos-help
mailing list