SDL_Net for DevCpp

hi,

i wanted to create some network stuff using SDL_net (v. 1.18). So I
thought it may bee good to create a static library.

I just put all SDL_net files into a project and compiled…

… and got 2 errors

non-local function `int SDLNet_AddSocket(_SDLNet_SocketSet*, *) uses
anonymous type

And the same with SDLNet_DelSocket…

can anyone tell me how to create my .a or where to get it?

Leben Sie gesund? Gesundheit bei Lycos! Neu!

Download the DevPak from the devpak.org mirror under “Check for
updates/packages”

JoshOn 7/18/05, Duck Pomp wrote:

hi,

i wanted to create some network stuff using SDL_net (v. 1.18). So I thought
it may bee good to create a static library.

I just put all SDL_net files into a project and compiled…

… and got 2 errors

non-local function `int
SDLNet_AddSocket(_SDLNet_SocketSet*, <anounymou_struct>*)
uses anonymous type

And the same with SDLNet_DelSocket…

can anyone tell me how to create my .a or where to get it?

Leben Sie gesund? Gesundheit bei Lycos! Neu!


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Duck Pomp wrote:

hi,

i wanted to create some network stuff using SDL_net (v. 1.18). So I
thought it may bee good to create a static library.

I just put all SDL_net files into a project and compiled…

… and got 2 errors

non-local function `int SDLNet_AddSocket(_SDLNet_SocketSet*,
<anounymou_struct>*) uses anonymous type

And the same with SDLNet_DelSocket…

can anyone tell me how to create my .a or where to get it?

SDL_net-devel-1.2.5-VC6.zip contains SDL_net.lib . . . I don’t know if
that will serve the same purpose as a .a but you should be able to link
statically with that, right? I use the VC6 binaries of SDL_image and
SDL_ttf with Dev-C++ and they work fine, though I’m linking
dynamically. If the .lib doesn’t work for static linking, why not link
dynamically to the .dll and just distribute the dll with your program?