/MT vs /MD and x86 vs x64

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
bers
Posts: 3
Joined: Wed, 2011-04-13, 18:30

/MT vs /MD and x86 vs x64

#1 Post by bers »

Hi,
I'm using VS2005 on Win7 x64. I configured both for Win32 and Win64, and I noticed that, while the Win32-generated stuff is /MT(d) throughout, the Win64 projectes are /MD(d). Is this intended, and if yes, why?

In any case, you might adapt FAQ #26 (viewtopic.php?t=35), because this still states that dcmtk uses /MT.

Thanks,
Yannick

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

Thank you for pointing this out.

By default, DCMTK still uses /MT unless the CMake variable DCMTK_OVERWRITE_WIN32_COMPILER_FLAGS is set to "off". However, for the official 3.6.0 release, the generator check for VS on Win x64 was incorrect -- the "Win64" suffix was missing. This has been fixed with the following commit, which also makes sure that future VS versions are (hopefully) detected automatically.

bers
Posts: 3
Joined: Wed, 2011-04-13, 18:30

#3 Post by bers »

So on the short time scale, can I do anything to generate all projects with /MT instead of /MD? Do I need to replace the CMakeLists.txt and re-generate? Because regeneration alone does not seem to suffice, if I get you right.

Edit: Yes, that works. Thanks a lot!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest