[ENet-discuss] Using enet with C++

ingmar wirths ingmania at googlemail.com
Wed Jul 30 14:56:54 PDT 2008


2008/7/30 Bjørn Lindeijer <bjorn at lindeijer.nl>:
> On 7/30/08, ingmar wirths <ingmania at googlemail.com> wrote:
>> Hello,
>>
>>  i was trying to use enet with c++ and ran into trouble.
>>  My code is as simple as possible:
>>
>>  #include <iostream>
>>  #include <enet.h>
>>
>>  int main()
>>  {
>>   std::cout << "enet-test" << std::endl;
>>  }
>
> 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?


More information about the ENet-discuss mailing list