[SDL] SDL_net dev cpp linker problem

Chris Rajula superrajula at gmail.com
Fri May 4 05:43:45 PDT 2007


I have downloaded the SDL_net library, but I have no idea of how to
"install" it.
I'm a regular Linux user, and I'm working in a Windows environment. I'm
totally confused.

The SDL_net library only comes in source code.
I've tried to compile the library, but it gives me strange errors, like
[Linker error] undefined reference to `WSAStartup at 8' .

/Chris

On 5/4/07, Alvin <alvinbeach at gmail.com> wrote:
>
> On Friday 04 May 2007 09:23:55 Chris Rajula wrote:
> > On 5/4/07, Alvin <alvinbeach at gmail.com> wrote:
> > > On Friday 04 May 2007 08:58:37 Chris Rajula wrote:
> > > > Problem is, that I get a couple of these:   [Linker error] undefined
> > > > reference to `SDLNet_TCP_Recv'
> > > > Are there any special flags I should give to the compiler/linker,
> > > > besides from -lSDL?
> > >
> > > -lSDL_net ;)
> > >
> > > SDL_net is an addon library - it's not a part of the core SDL library.
> > > Therefore, you need to specify it when you are linking. This goes for
> the
> > > other SDL_????? libraries (e.g. SDL_ttf).
>
> > Right, that's just as I thought then, however, do I need to compile the
> > SDL_net library myself to be able to link with it?
>
> Since you are getting linker errors and not compile errors, I bet you
> already
> have SDL_net installed. In that case, just add the -lSDL_net linker option
> and those errors should go away.
>
> Alvin
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>



-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GIT d? s-: a--- C>$ UL+++>$ P L+++>$ !E--- !W+++>$ !N o? K--? !w-- !O----
!M>$ !V? PS+(+++)@ !PE Y++ !PGP? t++ !5? X++ !R tv--? b+>$ DI D+ G e h !r
!y*
------END GEEK CODE BLOCK------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070504/3d75d713/attachment.htm 


More information about the SDL mailing list