[SDL] SDL_net dev cpp linker problem
Chris Rajula
superrajula at gmail.com
Fri May 4 06:07:56 PDT 2007
Oh, I had just forgotten to download the SDL_net devel package.
I did just that, and installed it.
It seems to work now, except for a small problem, but I don't think it's SDL
related.
I now get the following [Linker error] undefined reference to `WinMain at 16'
.
Thing is, I never use WinMain :s
Any ideas?
/Chris
On 5/4/07, Alvin <alvinbeach at gmail.com> wrote:
>
> On Friday 04 May 2007 09:43:45 Chris Rajula wrote:
> > 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
> >>
> > 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' .
>
> Have you just tried adding -lSDL_net after -lSDL in your compiler command
> line?
>
> To help further I need more details of your system so I can point you at
> the
> right places. At the very least, what Linux distribution are you using?
>
> 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/7e34c03a/attachment.htm
More information about the SDL
mailing list