Is the .lib file the same as a .cpp file containing the source code or is it something else. If it is something else where does the .cpp file go?
No. Source file are text based files, libs are binary files. Source code usually has an extension like
*.cpp,
*.h while a static lib usually (!) has
*.lib or
*.a.
Contact the author of that lib to provide you with the required files or (only in case the
*.cpp file is the source code of that lib) compile it yourself before linking to it.
Note that you really should better ask the author of the lib rather that the authors off Code::Blocks what to do. We cannot provide support for things we don't know.