[SDL] SDL_Net for DevCpp

Matthew Hurne matthew.hurne at gmail.com
Mon Jul 18 01:59:00 PDT 2005



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?




More information about the SDL mailing list