[SDL] Compilation with VC++

Sam Lantinga slouken at devolution.com
Mon Aug 30 14:56:47 PDT 1999


> I am trying to compile a program with VC++ 5.0 that uses SDL.  In the
> linking stage I get the errors:
> SDL.lib (winmain.obj) : error _main already defined in main.obj
> SDL.lib (winmain.obj) : error unresolved external symbol _RunMain

> I tried the SDL FAQ suggestion of using 'main()' without a return value
> of 'int', but it made no difference.  How do I get past this?

Are you including SDL.h in the same file which contains main()?

	-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software
--
"Any sufficiently advanced bug is indistinguishable from a feature"
						 -- Rich Kulawiec 



More information about the SDL mailing list