Jump to content
  • Advertisement
Sign in to follow this  
omyn

/MTd vs. /MT

This topic is 4593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Anyone know what the differences are between these? (other than their name) I can compile (.net 7.1) my program using /MTd, but i get unresolved external symbol errors when i compile using /MT. any help will be appreciated, thanks

Share this post


Link to post
Share on other sites
Advertisement
Isn't /MTd for debugging? You might be linking to Debug libraries or have other debug settings (debug project settings)

Share this post


Link to post
Share on other sites
/MTd means to link to the debug version of the multi-threaded C run-time library (CRT), and /MT means to link to the release version. You have several choices including single- vs. multi- threaded, static vs. dynamic linkage, and debug vs. release.

Make sure that in each configuration all projects and libraries link to the same CRT library. Otherwise, you will get link errors and warnings. I have found that many external libraries assume multi-threaded dynamic linkage (release and/or debug), so I use that as my default.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!