In the title you say you are using Dev-C++, in the post you speak about Code::Blocks. What IDE do you work with? Dev-C++ shouldn't be used anymore.
You must link the libraries, until now you have only specified where the libraries are, but not which libraries to use. This is explained in the tutorials.