If that is your exact, complete program, and you have told it to link with SDLmain.lib, then there is something wrong with your setup or your project options.
Alas, I don't know what exactly it is. The error message means that the compiler is not linking with SDLmain.lib, which is where main() is actually defined in an SDL app. (SDL #defines main as something else, so your main is that something else, which SDL's main calls.)
You don't need a tutorial for everything. Rather a lot of libraries around have terrible documentation and you have to use them anyways. SDL is one of the better ones.
EDIT: I'm not implying that you have to dive into SDL with nothing. The wiki provides extensive information on everything and each header has doxygen notes. It's pretty self explanatory.
Do NOT use 1.2 then 2.0. That's like learning OpenGL 1.2 then jumping up to OpenGL 3.3. It makes absolutely no sense to learn techniques that are now beyond deprecated and labeled as wrong.
Lumpkin wrote:
No you don't. I never do and it works. Just include "SDL.h"
Yes, you do. The library changes the definition of "main(int argc, char *argv[])" to "SDL_main(int argc, char *argv[])" then calls that with C linkage from an internal entry point. It's done this way to help define a more uniform entry point.
@Lumpkin
Why are you so adamantly pressing bad advice on the OP?
computerquip has not only posted correct information, he has had to refute your incorrect information a couple of times. But you seem undeterred. Perhaps you should consider this before posting a topic in the Lounge wondering why you are being reported?
You should be able to use VS to get this working. The problem is something with your project settings. You might want to create a new project from scratch. Ensure that you select a console application which outputs an executable, otherwise the entry point could get renamed to something like DLLmain() or WinMain().
Also, are you dynamically or statically linking SDL? Do you have the source of SDL or are you linking to the binary directly?
OK, this is what I have done. I tried to link the .lib files through the project settings looking at numerous videos seeing if I did it right, in which I did. I tried using a different compiler to see if it would work doing everything that you all told me and it still could not compile. I may be completely missing something. Does anyone have a Skype in which they can guide me through this, if you have the spare time, because i'm determined to figure this out and get past this block that I haven't got past for these two weeks. Thanks in advance.