The problem seems similar to something you encounter in MSVS, in that you have to declare the main function as: int _tmain(int argc, _TCHAR* argv[]).
www.google.com.tw