[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

basic question on dlls and libs

Posted on 2013-06-14
2
Medium Priority
?
410 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

650 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