[ENet-discuss] Err, Enet won't build due to linker/compiler errors.

Bjørn Lindeijer bjorn at lindeijer.nl
Wed Jul 30 01:42:52 PDT 2008


On 7/28/08, Matt Amidon <matthewcafl at yahoo.com> wrote:
> The ONLY code I have written is :
> #include "enet.h"
>
> int main( int argc, char* argv[] )
> {
>     return 1;
> }
>
> I am also linking ws2_32.lib and have defined WIN32_LEAN_AND_MEAN

Since I'm not a Windows using I can't do much with your error
messages, but the way you are including ENet has caused problems for
other people before. You need to do:

#include <enet/enet.h>

And make sure your environment is properly set up to handle that. In
particular, do not add the "enet" subdirectory to your compiler's
include path.

Regards,
Bjørn


More information about the ENet-discuss mailing list