Visual Studio is terrible...Code::Blocks. All free, open source, cross platform.
You need to link winmm.lib.
And please stop using DevCPP.
Get Visual Studio. The Express editions are free.
And why exactly is Visual Studio terrible ?
While I appreciate the fact that Code::Blocks might be free (VS is, too) and open source, but fail to understand why you call it "terrible"
I have used CB in the past I did not find it exactly amazing...
The auto-complete got in the way, the indentation was horrible and it took a lot of time starting up (although so does VS).
Now with VS, the Intellisense works like a charm. Just include a header and presto! All the class defines and functions are there for you to peruse at leisure.
The indentation is better than in CB (I hate K&R).
Large libraries like FLTK hardly take any time in compiling under VS. The debugger and the MSDN express encyclopedia are also nice additions.
Ok, I admit it does take time to install and start-up, and settings are a bit hard to find, but that does NOT make it terrible.