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

  • SEARCH
  • Home
  • 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 8716733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:09:23+00:00 2026-06-13T06:09:23+00:00

What is the meaning of Runtime Library /MTd /MT and so on ? Reading

  • 0

What is the meaning of Runtime Library /MTd /MT and so on ?

Reading http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=vs.71).aspx, didn’t convince me.

I have to use a third-party project, that has all its “Release” as “/MD” and all its “Debug” as “/MDd”. All my projects (that other people use, so I can’t change) have “/MT” and “/MTd”.

I must add libraries from that third-party project, as input, into my project. To avoid linker errors, I have changed the settings in that project to match my project.

I did that, without understanding the implications.

My project builds, seems to work (have not used a lot of features yet), but the executables from the original project will not build anymore, there are errors like

error C1189: Please use the /MD switch for _AFXDLL builds   c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxver_.h

So… I don’t know how to make everything work right, or what are the implications of my change.

Can I somehow combine /MD and /MT libraries ? What would I have to do to make both projects work ?

  • 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-06-13T06:09:24+00:00Added an answer on June 13, 2026 at 6:09 am

    The /MD flag implicitly defines the same information as /MT – plus specifies that you’re using the DLL version of the runtime library.

    The /MT and /MD flags basically both say to use the multithreaded versions of the runtime library – the difference is that /MD says to use the DLL based version, while /MT statically links in the libraries.

    All of the flags with an extra d are the debug versions – so /MDd is saying to use the debug version of the DLL-based multithreaded runtime libraries.

    There aren’t a lot of details in your question about what’s not causing the failing projects to not work. If you switch everything to use /MD, you’ll need to include the runtime DLLs along with your project, which may be why they are now failing. (Previously, with /MT, they would have been statically linked to your project.)

    On a side note – the documentation for the flags in the VS 2010 version is quite a bit simpler to understand. The language was simplified dramatically in later documentation releases, even though the flag meanings haven’t changed. It might ease your understanding to look at the 2010 notes instead of the VS 2003 documentation you linked.

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

Sidebar

Related Questions

In this article: http://www.ibm.com/developerworks/java/library/j-jtp1029/index.html Brian Goetz states: Just because class X is compiled against
I have been meaning to insert a small script into the DOM at runtime
What is meaning of Use Custom Permissions check-box in Magento installer? version 1.7.0.0
Does ** have any special meaning in C? Like this: static intparse_one (int argc,
I'm interested in the meaning of the runtime error codes come from asp.net ajax
How can i create a partial class at runtime? Example: I have a class
Possible Duplicate: What are the differences between struct and class in C++ http://www.cplusplus.com/reference/std/typeinfo/type_info/ I
I have a situation where T4MVC is generating everything properly (meaning intellisense shows all
Question: I need to read a CSV file. I use the FileHelpers library to
I know that string literals in C/C++ have static storage duration , meaning that

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.