Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 926611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:42:42+00:00 2026-05-15T19:42:42+00:00

When linking an executable, if it does not make reference to any of the

  • 0

When linking an executable, if it does not make reference to any of the symbols in one of the DLLs on the link line, will it still depend on that DLL at runtime?

To make the question concrete, suppose I am building an application from Visual Studio project foo.

Under Project Properties > Linker > Input > Additional Dependencies I have specified bar.lib, the import library for bar.dll, even though it is not required to link foo.exe successfully.

Do I still need to distribute bar.dll with my application since I have marked it as a linking dependency?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:42:43+00:00Added an answer on May 15, 2026 at 7:42 pm

    No it is not required.

    A import library only a library and the EXE will include only the references to functions which are used. By the way to verify this you can use DUMPBIN.EXE utility or dependencies walker (see http://www.dependencywalker.com/) which are part of Visual Studio packages. Just type DUMPBIN.EXE foo.exe /imports or open foo.exe with the dependencies walker.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In linking a sports event to two teams, at first this seemed to make
How does one combine two GCC compiled .o object files into a third .o
Compilng and linking this file results in a 1-KiB executable : #pragma comment(linker, "/Entry:mainCRTStartup")
I encountered this while trying to understand ELF (Executable and Linking Format). Steps I
Delphi documentation says that Debug information [...] it does not affect the size or
I tried to build two programs with one GNU Makefile by either make prog1
I am linking a executable with a plist using -sectcreate __TEXT linker flags. Reason
I am getting a bunch of linking errors while trying to link the release
How does linker know which symbols should be resolved at runtime? Particularly I'm interested
Linking a library with a project relative path in Visual studio 2008

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.