Latest Mingw version & errors in SDL_net

Can someone check if the code is compatible with the latest version of the mingw compiler ?

When compiling with the latest version of mingw develop studio i got the following errors in SDLnetUDP.c :

Compiling source file(s)…
GUCEF\SDL_net\SDLnetUDP.c
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c: In function int SDLNet_UDP_Bind(_UDPsocket*, int, IPaddress*)': C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:430: error: cannot convert
_UDPsocket::UDP_channel*’ to UDP_channel*' in assignment C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:431: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:426: error: forward declaration of struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:439: error: cannot convert
_UDPsocket::UDP_channel*’ to UDP_channel*' in assignment C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:441: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:426: error: forward declaration of struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:445: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:426: error: forward declaration of struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:445: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:426: error: forward declaration of struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c: In functionint
SDLNet_UDP_SendV(_UDPsocket*, UDPpacket**, int)’:
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:541: error: invalid conversion from
Uint8*' toconst char*‘
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:556: error: cannot convert _UDPsocket::UDP_channel*' toUDP_channel*’ in assignment
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:558: error: invalid use of undefined
type struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:492: error: forward declaration of
struct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:587: error: invalid use of undefined
type struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:492: error: forward declaration of
struct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:588: error: invalid use of undefined
type struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:492: error: forward declaration of
struct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:592: error: invalid conversion from
Uint8*' toconst char*‘
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c: In function int SDLNet_UDP_RecvV(_UDPsocket*, UDPpacket**)': C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:719: error: invalid conversion fromUint8*’ to char*' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:733: error: cannot convert
_UDPsocket::UDP_channel*’ to UDP_channel*' in assignment C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:735: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:673: error: forward declaration of struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:737: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:673: error: forward declaration of struct UDP_channel' C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:738: error: invalid use of undefined typestruct UDP_channel’
C:\GUCE\GUCE_DEV\GUCEF\SDL_net\SDLnetUDP.c:673: error: forward declaration of `
struct UDP_channel’

GreeTz.--------------------------------
| Dinand Vanvelzen, |
| Programmer, |

Software Engineering student

“Dinand Vanvelzen” ha scritto nel messaggio
news:000c01c36c1e$68b95160$b33dc850 at rmnotebook…
Can someone check if the code is compatible with the latest version of the
mingw compiler ?

When compiling with the latest version of mingw develop studio i got the
following errors in SDLnetUDP.c :--------------------

i ave MinGW-3.0.0-rc4
gcc-core-3.3.1-20030804-1
SDL 1.2.5

and no error in compile time …

you use the procedure:
./autogen.sh
./configure
make

???

you have installed the package win3api ? (it’s contained within the pakage
complete of the mingw)

see you

-CLEANUP

i ave MinGW-3.0.0-rc4
gcc-core-3.3.1-20030804-1
SDL 1.2.5

and no error in compile time …

You won’t get the error with the stand-alone mingw compiler (forgot to
mention that soz). You will get them however
with mingw developer studio full install (which has a mingw compiler
included). The errors are some simple syntaxis errors
and are easy to fix which i have done,… just though i’d let you guys know
that it does not compile without problems
for the mingw developer studio IDE.

you use the procedure:
./autogen.sh
./configure
make

Mingw Developer studio is an IDE, so i’ts all point and click work :slight_smile:

GreeTz.


| Dinand Vanvelzen, |
| Programmer, |

Software Engineering student

----- Original Message -----
From: goul_dukat@despammed.com (Goul_duKat)
To:
Sent: Wednesday, August 27, 2003 1:51 AM
Subject: [SDL] Re: latest Mingw version & errors in SDL_net

You won’t get the error with the stand-alone mingw compiler (forgot to
mention that soz). You will get them however
with mingw developer studio full install (which has a mingw compiler
included). The errors are some simple syntaxis errors
and are easy to fix which i have done,… just though i’d let you guys know
that it does not compile without problems
for the mingw developer studio IDE.

Can you post the fixes that you made?

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

  • CLEANUP

and are easy to fix which i have done,… just though i’d let you guys
know

that it does not compile without problems
for the mingw developer studio IDE.

Can you post the fixes that you made?

Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I uploaded the files to my webserver.

The modified SDL_Net code:
Added some casts and changed a struct in SDLnetUDP.c
http://users.skynet.be/GalaxyUnlimited/SDL_net.zip

My modified NET2 version: (may not be usefull to others anymore since i
modified some behaviour)
http://users.skynet.be/GalaxyUnlimited/net2.zip

GreeTz.


| Dinand Vanvelzen, |
| Programmer, |

Software Engineering student

----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Wednesday, August 27, 2003 5:43 PM
Subject: Re: [SDL] latest Mingw version & errors in SDL_net