Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2003 20:09:35 -0300 (ART)
From:      Fernando Gleiser <fgleiser@cactus.fi.uba.ar>
To:        lattera@softhome.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: header errors when compiling
Message-ID:  <20030121200606.O4134-100000@cactus.fi.uba.ar>
In-Reply-To: <courier.3E2DD20A.00000CA7@softhome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 21 Jan 2003 lattera@softhome.net wrote:

> this code:
> #include <stdio.h>
> #include <stdlib.h>
> #include <sys/socket.h>
> #include <sys/types.h>

[snip]

You have an ordering problem with the headers. You MUST #include <sys/types.h>
first. The man page says so :)

>
> produces this error when compiled:

[lots of errors snipped]

fix the order with the includes and try again.



			Fer


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030121200606.O4134-100000>