Skip to main content
gamedev.net
🔒 Locked

/MTd vs. /MT

Started by omyn 2 replies 2.4k views
Original Post
omyn
omyn
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
blanky
blanky
Isn't /MTd for debugging? You might be linking to Debug libraries or have other debug settings (debug project settings)
JohnBolton
JohnBolton
/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.
John BoltonLocomotive Games (THQ)Current Project: Destroy All Humans (Wii). IN STORES NOW!
omyn
omyn
thanks so much! that was it, i didnt have release selected ><

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.