[ENet-discuss] Using enet with C++
Lee Salzman
lsalzman1 at cox.net
Thu Jul 31 21:11:12 PDT 2008
There is no real point in naming them enet_foo.h for the simple reason
that that was why I put them in their own directory to begin with!
A directory is a namespace. There is no need to fake namespaces by
crimes against underscores. enet/enet_foo.h is a tad too redundant for
my tastes. :)
Lee
Matt Amidon wrote:
> 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
> <mailto: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 <mailto:ENet-discuss at cubik.org>
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
More information about the ENet-discuss
mailing list