Now I've tried Dev C++. Still the same. Can you please try to compile this code on your rig:
http://rapidshare.com/files/324105295/cprog.c.html

Ignore any comments. Those are in my native language, so you won't understand probably.