To back up hk_mp5kpdw and Tater, there is an overview of the right and wrong ways to declare main here. At the bottom of that page, it links to a nice article that explains the problems of void main...