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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:00:51+00:00 2026-05-13T10:00:51+00:00

Consider this scenario: An application links to 3rd party library A. A is built

  • 0

Consider this scenario:
An application links to 3rd party library A.

A is built using MSVC 2008 and is statically linking (ie. built with /MT) to the C Runtime Library v9.0.

The application is built using MSVC 2005 and is statically linking to A and (using /MT) to the C Runtime Library v8.0.

I can see trouble with this – for instance if types are changed in the headers between runtime library versions.

Is care taken to keep the runtime library headers compatible between versions, or should one always make sure all statically linked libraries are linking to the same version of the runtime library?

  • 1 1 Answer
  • 1 View
  • 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-13T10:00:52+00:00Added an answer on May 13, 2026 at 10:00 am

    It should not be a problem. Each library links to its own runtime and mostly functions independently from other libraries in the process. The problem comes about when the libraries ABI is badly defined. If any kind of heap allocated object is allocated in one library, passed across a library boundary and ‘freed’ in another library there are going to be problems as a different heap manager is being used to free a block from the heap manager used to allocate it.

    Any kind of c-runtime defined struct, object or entity should not be passed accross boundries where a different runtime version might be being used :- FILE*’s obtained from one library for example will have no meaning to a different library linked against a different runtime.

    As long as the library API’s use only raw types, and do not try to free() passed in pointers, or pass out pointers to internally malloc()’d memory that they expect the application (or another library) to free() you should be ok.

    Its easy to fall for the FUD that “anything can go wrong” if c-runtimes are mixed, but you have to remember that libs, and dynamic libraries (.so / .dll / .dylib) have traditionally been developed in a wide variety of languages: allowing code written in asm, c, c++, fortran, pascal etc to comminicate via an effective CPU efficient binary interface.

    Why suddenly panic when C is being linked to C?

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

Sidebar

Related Questions

Consider this scenario we have a class A which is singleton it has a
Consider this query: SELECT F1,F2 FROM TABLE GROUP BY F1 Selecting F1 is valid,
As part of a Linux benchmark application, I have a parent process that forks
So I have a layered ASP.NET MVC proof-of-concept application with good separation between presentation
Pretty much all the apps I use on a regular basis implement this 'seemly
I develop a web application for Tomcat 6, and I'm face to face with
I am using the deprecated autocomplete plugin (since I'm using the legacy jquery lib
Wikipedia provides information about one of the most common scenarios for exploiting a reflected
I'm thinking about how to represent a complex structure in a SQL Server database.
Like many other developers out there, I've created iPhone projects that use a UITabBarController

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.