-
about static link
Hello everyone,
I am using Visual Studio 2003. If I build a static library (.lib), how can I input dependent .dll (other dynamic link libraries) and .lib (other static link libraries)?
Currently, from project Property Page, there is no "linker" item, which allows us to provide dependent input .dll and .lib files when we use to build regular exe or dll project.
Could any help please?
thanks in advance,
George
-
You are building a static library and a library cannot have any dependancies. ( because a static library is not linked, it's just a collection of object files ).
If you want to use that library you have to link to any other libraries or dlls that your lib uses as well.
Kurt
-
I suppose you could use pragmas to force the compiler to link with other libraries when the static library is finally linked with the application program. See MSDN for the comment pragma.