<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hmm, I likely had the same problem (I've fixed my enet problem btw, thanks)<br>Maybe those files should have a slight rename, like enet_time.h for example.<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;">----- Original Message ----<br>From: Bjørn Lindeijer <bjorn@lindeijer.nl><br>To: Discussion of the ENet library <enet-discuss@cubik.org><br>Sent: Thursday, July 31, 2008 12:33:29 AM<br>Subject: Re: [ENet-discuss] Using enet with C++<br><br>
On 7/30/08, ingmar wirths <<a ymailto="mailto:ingmania@googlemail.com" href="mailto:ingmania@googlemail.com">ingmania@googlemail.com</a>> wrote:<br>> > Probably your errors will be gone once you include ENet as follows:<br>> ><br>> > #include <enet/enet.h><br>> ><br>> > And make sure the enet/ directory is not in your compiler's search path.<br>> ><br>> > I think the tutorial might be missing this... you're at least the<br>> > third I've seen doing that and having problems.<br>> ><br>> > Regards,<br>> > Bjørn<br>><br>><br>> Thanks, that works. I had indeed the enet include directory in the search path.<br>> However, im curious, why is that a problem?<br><br>Just take a short look at the files in the enet directory. You'll see<br>files named "unix.h", "types.h", "time.h", etc. When you put
include<br>files with such generic names in your compiler's global search path,<br>you're bound to find your compiler include the wrong one at some<br>point.<br><br>Like for example /usr/include/enet/time.h instead of the standard<br>system header /usr/include/time.h. Judging by your errors this one<br>seems to have bitten you, since the compiler is complaining about lots<br>of missing time-related methods.<br><br>Regards,<br>Bjørn<br>_______________________________________________<br>ENet-discuss mailing list<br><a ymailto="mailto:ENet-discuss@cubik.org" href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br><a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br></div></div></div><br>
</body></html>