[ENet-discuss] Using enet with C++

Matt Amidon matthewcafl at yahoo.com
Thu Jul 31 09:46:21 PDT 2008


Hmm, I likely had the same problem (I've fixed my enet problem btw, thanks)
Maybe those files should have a slight rename, like enet_time.h for example.



----- Original Message ----
From: Bjørn Lindeijer <bjorn at lindeijer.nl>
To: Discussion of the ENet library <enet-discuss at cubik.org>
Sent: Thursday, July 31, 2008 12:33:29 AM
Subject: Re: [ENet-discuss] Using enet with C++

On 7/30/08, ingmar wirths <ingmania at googlemail.com> wrote:
>  > Probably your errors will be gone once you include ENet as follows:
>  >
>  > #include <enet/enet.h>
>  >
>  > And make sure the enet/ directory is not in your compiler's search path.
>  >
>  > I think the tutorial might be missing this... you're at least the
>  > third I've seen doing that and having problems.
>  >
>  > Regards,
>  > Bjørn
>
>
> Thanks, that works. I had indeed the enet include directory in the search path.
>  However, im curious, why is that a problem?

Just take a short look at the files in the enet directory. You'll see
files named "unix.h", "types.h", "time.h", etc. When you put include
files with such generic names in your compiler's global search path,
you're bound to find your compiler include the wrong one at some
point.

Like for example /usr/include/enet/time.h instead of the standard
system header /usr/include/time.h. Judging by your errors this one
seems to have bitten you, since the compiler is complaining about lots
of missing time-related methods.

Regards,
Bjørn
_______________________________________________
ENet-discuss mailing list
ENet-discuss at cubik.org
http://lists.cubik.org/mailman/listinfo/enet-discuss



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20080731/a48dfdea/attachment.htm>


More information about the ENet-discuss mailing list