I think I see your problem. You're using Dev-C++... seriously, why does anyone still use this? It hasn't been updated since like 2007... not to mention it's a weak IDE to begin with. Get Visual Studio Express or Code::Blocks.
It's still a turd... and should not be used for any reason. Especially when far superior IDEs and compilers exist out there. I would sooner use g++ and eMacs than Dev-C++.