Solved

basic question on dlls and libs

Posted on 2013-06-14
2
384 Views
Last Modified: 2013-06-14
Hi Experts,

To my understanding, libs are the function address tables used to tell code how to access info in the dlls that they describe.  Why is it then, that sometimes I can compile a static library (to a .lib) and use it in another project without ever needing a dll and other times I need to specify a lib and then place the dll in the same folder of the exe for it to run?

Thanks!
Mike
0
Comment
Question by:thready
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 39247682
A static library already contains all the code that the linker needs to complete your application. Basically, that code (no less, no more, regardöess pf what else a static lib contains) is extracted from a static library at link time and added to your program (or DLL), causing a larger binary.

The one that come with DLLs are import libraries, which indeed only contain call stubs that refer to the DLLs they belong to,
0
 
LVL 1

Author Closing Comment

by:thready
ID: 39247759
Thanks!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Runtime error 76: path not found error VB6 program on Windows 7 3 442
C++ question 3 65
String manipulation in Visual Basic 7 64
Please explain "Multi-Tenant Services" 5 86
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question