Click to See Complete Forum and Search --> : why both .lib abd .dll?


ColdFire
October 1st, 2008, 12:00 AM
How can a same C++ project have both .lib and .dll?
Is it possible for a project to use both static version and dynamic version of same library?

Notsosuperhero
October 1st, 2008, 12:38 AM
Because you can either implicitly link the DLL, which is when you link to the lib file, which will resolves calls to DLL. Then there is explicit linking where you load the DLL and you must load in the functions and things manually from the DLL.

I don't believe you can use both, which would be useless anyways, since implicit linking mus be recompiled every time the DLL changes, whereas explicit would only need the new DLL(assuming that the function names remain the same).