[ENet-discuss] Installing..
Lee Salzman
lsalzman1 at cox.net
Mon Sep 19 20:56:02 PDT 2005
Do not include ANYTHING EXCEPT <enet/enet.h>. This means, do not include
unix.h. Do not include win32.h. Really, it means do not include anything
at all from enet except <enet/enet.h>.
Lee
Francisco Selles wrote:
> Bruce Mitchener and Lee Salzman wrote:
>
>> Oh, yeah, it is worth mentioning the only thing that should be
>> included at all is <enet/enet.h>
>
>
>> Lee
>
>
>> Bruce Mitchener wrote:
>>
>>> Lee Salzman wrote:
>>>
>>>> According to the MSDN documentation, the win32.c code is fine. But,
>>>> you may have to insert some casts in for those arguments to whatever
>>>> the compiler is barking about to make that compile.
>>>
>>>
>>>
>>> He also probably shouldn't be doing the #include "win32.c"
>>>
>>> - Bruce
>>>
>> _____
>
>
> I already tried to compile with #include"win32.c " commented and don't
> work..the following erros they happened:
>
> Project : Win32 App
> Compiler : GNU GCC Compiler (called directly)
> Directory : C:\Documents and Settings\FSelles\Desktop\w32\
> --------------------------------------------------------------------------------
>
> Switching to target: default
> mingw32-g++.exe -I..\..\..\..\Enet -I..\..\..\..\Enet\include
> -I"..\..\..\..\Program Files\CodeBlocks\include" -I"C:\Program
> Files\CodeBlocks\include" -c main.cpp -o .objs\main.o
> In file included from main.cpp:9:
> ../../../../Enet/include/enet/unix.h:10:24: netinet/in.h: No such file
> or directory
> In file included from main.cpp:9:
> ../../../../Enet/include/enet/unix.h:12: error: conflicting declaration
> 'typedef int ENetSocket'
> ../../../../Enet/include/enet/win32.h:11: error: 'ENetSocket' has a
> previous declaration as `typedef SOCKET ENetSocket'
> ../../../../Enet/include/enet/unix.h:12: error: declaration of `typedef
> int ENetSocket'
> ../../../../Enet/include/enet/win32.h:11: error: conflicts with previous
> declaration `typedef SOCKET ENetSocket'
> ../../../../Enet/include/enet/unix.h:12: error: declaration of `typedef
> int ENetSocket'
> ../../../../Enet/include/enet/win32.h:11: error: conflicts with previous
> declaration `typedef SOCKET ENetSocket'
> ../../../../Enet/include/enet/unix.h:17: error: conflicting declaration
> 'ENET_SOCKET_NULL'
> ../../../../Enet/include/enet/win32.h:16: error: 'ENET_SOCKET_NULL' has
> a previous declaration as `<anonymous enum> ENET_SOCKET_NULL'
> ../../../../Enet/include/enet/unix.h:17: error: declaration of
> `ENET_SOCKET_NULL'
> ../../../../Enet/include/enet/win32.h:16: error: conflicts with previous
> declaration `<anonymous enum> ENET_SOCKET_NULL'
> ../../../../Enet/include/enet/unix.h:29: error: conflicting declaration
> 'typedef struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/win32.h:28: error: 'ENetBuffer' has a
> previous declaration as `typedef struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/unix.h:29: error: declaration of `typedef
> struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/win32.h:28: error: conflicts with previous
> declaration `typedef struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/unix.h:29: error: declaration of `typedef
> struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/win32.h:28: error: conflicts with previous
> declaration `typedef struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/unix.h:29: error: declaration of `typedef
> struct ENetBuffer ENetBuffer'
> ../../../../Enet/include/enet/win32.h:28: error: conflicts with previous
> declaration `typedef struct ENetBuffer ENetBuffer'
> Process terminated with status 1 (0 minutes, 9 seconds)
> 19 errors, 0 warnings
>
>
> I unknow how to correct that problem, asto insert casts in for those
> arguments for another known compiler?
>
> thanks you
>
> Selles
>
> _________________________________________________________________
> MSN Messenger: instale grátis e converse com seus amigos.
> http://messenger.msn.com.br
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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