Hi! I'm new to programming, and am trying to set up Microsoft Visual Studio Express 2012 to work with SDL libraries (I downloaded the Win32 development libraries for Visual C++). I've been following a tutorial to learn the basics, however I can't figure out how to get rid of these errors no matter how much googling I do. The errors I'm receiving are:
Error 10 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup C:\Users\Matt\Desktop\C++\SDL_tutorial\Project1\MSVCRT.lib(crtexew.obj) SDL_tutorial
Error 1 error LNK2019: unresolved external symbol _SDL_RWFromFile referenced in function _SDL_main C:\Users\Matt\Desktop\C++\SDL_tutorial\Project1\main.obj SDL_tutorial
Many different variations of the last error, with the 'xxx referenced in function...' being the only difference (the xxx changing names). Thank you in advance for any help! Here's the code I have.
I have done what was listed in both of these, and checked them all 5 times over.
Under Config Properties >> Linker >> Input, I have SDL.lib and SDLmain.lib as additional dependencies.
Under Config Properties >> Linker >> System, I have SubSystem set to Windows.
And lastly under Config Properties >> VC++ Directories, I have Include Directories set to the SDL include folder, and Library Directories set to the SDL lib folder.
I think I got everything I'm supposed to have changed?