[SDL] compile problem in VC++ 6 Win2k
cutefuzzysquirrel at yahoo.com
Tue Aug 14 21:34:01 PDT 2001
I did all that. Win32 (not console),multithreaded
DLLs, main function, added sdl.lib and sdlmain.lib to
project(not just copied to directory),added include
The program actually DID compile a few times without
any problems. I was working through some of the
example code, and after about 4 rebuilds, the linker
error came back. That's what I don't understand. Now,
I can't get anything to compile (new project, followed
same procedure that made the first one work, I even
tried restarting VC). I truly have no clue.
--- Adam Gates <adam at preston.net> wrote:
> Create a Win32 application (not a console
> application) in VC6.
> Link to the Multithreaded DLL.
> Link to sdl.lib and sdlmain.lib.
> Create a 'main' function.
> Make sure 'SDL.H' is included in the file which
> 'main' is in.
> Michael Cowart wrote:
> > This is probably a stupid newbie question, but I
> > couldn't find one just like it in the archives.
> > The first time I tried to compile a SDL program, I
> > this error in VC++ 6:
> > SDLmain.lib(SDL_main.obj) : error LNK2001:
> > external symbol _SDL_main
> > Debug/duh.exe : fatal error LNK1120: 1 unresolved
> > externals
> > Everything was set right (include directories,
> > libraries included in project, DLL file in project
> > directory, using multithreaded DLLs).
> > I then tried just creating a new c++ file and let
> > create a new project when I tried to compile.
> > playing with it some, (set it to not use default
> > libraries and manually included msvcrt.dll), I got
> > program to compile correctly. This worked for a
> > compiles, but then, I got the same linker error
> > Now, no matter what I do, I can't seem to get it
> > work. I even tried a new project, going through
> > same steps, with no results.
> > Probably just a newbie problem, but it's driving
> > nuts.
> > Thanks,
> > Michael Cowart
> > __________________________________________________
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
> SDL mailing list
> SDL at libsdl.org
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
More information about the SDL