Archived

This topic is now archived and is closed to further replies.

SpreeTree

dll linking question

Recommended Posts

I am making a small application that links to a few dll''s created by myself. I am statically linking to the dll''s, as they always need to be present, so dynamically linking to them seems like a waste of time. To use the dll, I have to include the dll''s .lib file with the project. All I am wondering is... Does this lib file just decare the symbols, while the actual definitions are contained within the dll file? I assume this is the case, because if it wasn''t then the point of the dll would be lost, as I would have to recompile the application everything something changed within the dll, rather than just replacing the dll. Thanks in advance Spree

Share this post


Link to post
Share on other sites
Yes, the .lib file just contains the symbol list to be imported from the dll. Which means, as long as the exported symbols don''t change for the dll, a program using an old lib file will link to a newer dll without issues.

Share this post


Link to post
Share on other sites