linking the hmetis library file


I am trying to link the libhmetis.lib file to my C++ project in Windows using Code::Blocks. I have pointed the linker and compiler to the lib file but I still am getting the following error when I compile.

C:\...\KK_FR.cpp|668|undefined reference to `HMETIS_PartRecursive(int, int, int*, int*, int*, int*, int, int, int*, int*, int*)'|

Does anyone know how I can get ride of this?

Thank you in advance