cannot find header files

Aaron J. Grier
Wed Oct 2 21:29:00 GMT 2002

On Thu, Oct 03, 2002 at 01:21:53AM +0000, Arvind K wrote:

> >Arvind Krishnaswamy wrote:

> >> url.c:47:23: sys/socket.h: No such file or directory
> >>
> >> similar errors for dirent.h, sys/ioctl.h, net/route.h etc.

> Is there a workaround? Either changing the application program to
> adapt to functions defined in newlib or adapting headers from some
> other library 
> (glibc)?
> In general, how is such functionality supported by newlib?

it's not.  socket and route imply some sort of networking, while dirent
and ioctl imply a filesystem.  newlib provides neither.

you need to find an operating system to go along with your C library.
RTEMS ( and eCos (
are two freely available examples; there are plenty of others.

  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |

More information about the Newlib mailing list