Thanks for raising your hand factionwars. but, the Problem is solved, just had to add the minGW's directnrey path to the environment variables.
@Snayler, Netbeans user about 120 MB ram, But its nothing compared to what it offers, i see its stuffed with lots features.
Right now im just trying out some IDEs to see which one makes me more comfortable. And i think i like Netbeans better than Code::blocks, but cant figure out if there is any option to make console apps.
Anyways, im looking for more IDEs to try out, suggest me if you can pleas. Also ill try out Eclipse next.