Hello I am new to CodeBlocks and I am learning as I go, please have patience with me

I have decided to pick up C again and my previous development environment was Unix using gnu-c compiler.
Currently I am trying to compile a simple program that makes use of the mysql database.
I do have path to the mysql database libraries but when I include the paths in codeblocks it seems to not pick them up :?
Suppose the library file is D:\mysql\lib\opt\mysqlclient.lib
I want to add the path D:\mysql\lib\opt\ as my included library path.
Where in CodeBlocks is this done?
I tried going to Settings->Compiler and Debugger... than I selected the Linker Settings tab and added the lib file I needed. I also included the path to the lib file in the search directory's linker section, and still I cannot access it.
I am using the Mingw comiler that I installed.
If anyone has any idea I would appreciate it.
Thank you
