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 63847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:41:50+00:00 2026-05-10T18:41:50+00:00

Back in the 90s when I first started out with MFC I used to

  • 0

Back in the 90s when I first started out with MFC I used to dynamically link my apps and shipped the relevant MFC DLLs. This caused me a few issues (DLL hell!) and I switched to statically linking instead – not just for MFC, but for the CRT and ATL. Other than larger EXE files, statically linking has never caused me any problems at all – so are there any downsides that other people have come across? Is there a good reason for revisiting dynamic linking again? My apps are mainly STL/Boost nowadays FWIW.

  • 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. 2026-05-10T18:41:51+00:00Added an answer on May 10, 2026 at 6:41 pm

    There are some downsides:

    • Bigger exe size (esp if you ship multiple exe’s)
    • Problems using other DLL’s which rely on or assume dynamic linking (eg: 3rd party DLL’s which you cannot get as static libraries)
    • Different c-runtimes between DLL’s with independent static linkage (no cross-module allocate/deallocate)
    • No automatic servicing of shared components (no ability to have 3rd party module supplier update their code to fix issues without recompiling and updating your application)

    We do static linking for our Windows apps, primarily because it allows xcopy deployment, which is just not possible with installing or relying on SxS DLL’s in a way which works, since the process and mechanism is not well documented or easily remotable. If you use local DLL’s in the install directory it will kinda work, but it’s not well supported. The inability to easily do remote installation without going through a MSI on the remote system is the primary reason why we don’t use dynamic linking, but (as you pointed out) there are many other benefits to static linking. There are pros and cons to each; hopefully this helps enumerate them.

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

Sidebar

Related Questions

Back when I first started using SVN for version control I was told to
Back in my days as a BeOS programmer, I read this article by Benoit
back again with some more SQLAlchemy shenanigans. Let me step through this. My table
I'm trying to space out the items in this menu with the exact same
Back again this time working with data providers. Well i been doing a bit
Back in my ASP.NET days, I used URLRewriter.NET to do dynamic URL Rewrites. Basically,
Back again, thanks for all the help last time. I'm running this query: $query
Back in the days :) it was possible to find out which links where
Back when AppFabric Caching was Velocity, High Availability was out of the box option,
Back in the day I built a twitter widget plugin that used the now-deprecated:

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.