I'm using MingW and Code::Blocks. I think I've ran across same problem when trying to link my first CS program as a console application - it occurs each time I try to compile the CS app this way. I switched the target to GUI application and it built fine.
Thanks for the quick reply!
So what libraries and other options are you using for your project?