i'm not sure if this is of any help to you at all, but i just compiled it with MinGW (bloodshed devc++) and it ran fine.
this might be a dumb answer, but maybe its your compiler? thats a pretty simple script to not run. you could also try starting a "new project" or whatever you do in MSVC++. i guess it could be a bad linker.
Leave a comment: