You haven't even touched SDL at that point in that source code.
If I had to guess, something (possibly a linker option embedded in the SDL binding) is causing your program to be built as a Windows GUI (as opposed to Windows Console) so it has no stdin. I couldn't tell you much more than that, though; the ways of Windows development are foreign to me.