?
Solved

basic question on dlls and libs

Posted on 2013-06-14
2
Medium Priority
?
403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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 be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

764 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