[SDL] Setting up on VC++

Vitaliy Mikitchenko vitviper at hotmail.com
Sun Jan 26 13:15:00 PST 2003


He is linking against sdlmain, seee:
SDLmain.lib(SDL_main.obj) : error LNK2001 <-- the link error is because the
_SDL_main function is not found, which I believe is because his main()
method is not correctly specified. Of course, I could be wrong :)


----- Original Message -----
From: "Atrix Wolfe" <atrix2 at cox.net>
To: <sdl at libsdl.org>
Sent: Sunday, January 26, 2003 11:48 AM
Subject: Re: [SDL] Setting up on VC++


> are you linking to sdlmain?
>
> if you dont know if you are or not, paste the line your using for the
> linking options and we can check it out.
>
> ----- Original Message -----
> From: "Vitaliy Mikitchenko" <vitviper at hotmail.com>
> To: <sdl at libsdl.org>
> Sent: Friday, January 24, 2003 3:27 PM
> Subject: Re: [SDL] Setting up on VC++
>
>
> > Make sure you have a main function in your app like so:
> > int main(int, char **)
> > {
> > }
> >
> > ----- Original Message -----
> > From: "Janito Vaqueiro Ferreira Filho" <jvffprogramming at ieg.com.br>
> > To: <sdl at libsdl.org>
> > Sent: Friday, January 24, 2003 2:20 PM
> > Subject: Re: [SDL] Setting up on VC++
> >
> >
> > > Hello,
> > >
> > > Now it's giving just 1 error:
> > >
> > > SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
> > > _SDL_main
> > >
> > > Glenn Maynard wrote:
> > >
> > > >On Fri, Jan 24, 2003 at 04:07:43PM -0500, Josh Fishman wrote:
> > > >
> > > >
> > > >>>Add OpenGL to your list of libraries.
> > > >>>
> > > >>>
> > > >>Specifically, add "opengl32.dll"
> > > >>
> > > >>
> > > >
> > > >You don't add DLLs to the library list in VC, you add LIBs.
> > > >"opengl32.lib" and "glu32.lib".
> > > >
> > > >He does need to fix his SDL link, though.
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > _______________________________________________
> > > SDL mailing list
> > > SDL at libsdl.org
> > > http://www.libsdl.org/mailman/listinfo/sdl
> > >
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
>
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>




More information about the SDL mailing list