Main fails to execute

Howdy. I’m pretty green to SDL, got it running on Windows XP, compiled using VC++ 2008.
Basically, I followed the online tutorial to setup the environment and tried to compile
the code in Devel\SDL-1.2.13\test directory, specifically, loopwave.c

So, the code compiles without problem. However, “it does not run”;
Basically, after compilation the program starts and stops. Nothing within happens, not even
"Hello World" in int main(int argc, char*argv[])

I’ve included the source and yes, I read the FAQ and set up the env correctly.
It did not solve the problem.

Regards
Jarek M.
-------------- next part --------------
A non-text attachment was scrubbed…
Name: main.cpp
Type: text/x-c
Size: 1798 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20080729/87471486/attachment.bin

So, the code compiles without problem. However, “it does not run”;
Basically, after compilation the program starts and stops. Nothing within happens, not even
"Hello World" in int main(int argc, char*argv[])
Not to be insulting, but do you really mean, after compilation? If you
are just compiling the program you won’t get any output. If you are
doing the “compile and run” inside visual studio, a possible culprit
is that you don’t have the right kind of app (I think you need a
console app from within visual studio). Also, check in your program’s
main directory for a stdout.txt to check for the status of your
printouts–they don’t go to the console like in other apps (there are
many threads on this list that discuss why and how to change that
behavior).

John