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?–
Kevin Jones
Sony Electronics
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