static vs dynamic linking

Hi guys,so I have asked a similar question before,

but sometimes we need to include both a .lib file(static library) and a .dll file(dynamic library) with some libraries or APIs

so why they need for both in some cases?

thanks
The .lib files are of two kinds: static libaries and import libraries. The import libraries are used to access the .dll routines.
https://en.wikipedia.org/wiki/Dynamic-link_library#Import_libraries
Topic archived. No new replies allowed.