Compile dcmtk with common language runtime support

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
zlf
Posts: 3
Joined: Wed, 2009-01-21, 06:22

Compile dcmtk with common language runtime support

#1 Post by zlf »

I can successfully compile dcmtk in visual studio 2005 with "Multi-threaded (/MT)" and "No Common Language Runtime support".

If I switch CLR support from "No Common Language Runtime support" to "Common Language Runtime support". Compiler will "error D8016 : '/MT' and '/clr' command-line options are incompatible".

After switching "Runtime library" from "Multi-threaded (/MT)" to "Multi-threaded DLL (/MD)", compiler will report many errors.

I am pasting some of errors here.

Code: Select all

Error	4	error LNK2005: "private: static void __cdecl std::ios_base::_Ios_base_dtor(class std::ios_base *)" (?_Ios_base_dtor@ios_base@std@@CAXPAV12@@Z) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	
Error	5	error LNK2005: "public: static void __cdecl std::ios_base::_Addstd(class std::ios_base *)" (?_Addstd@ios_base@std@@SAXPAV12@@Z) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	
Error	6	error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Getgloballocale(void)" (?_Getgloballocale@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	
Error	7	error LNK2005: "private: static class std::locale::_Locimp * __cdecl std::locale::_Init(void)" (?_Init@locale@std@@CAPAV_Locimp@12@XZ) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	
Error	8	error LNK2005: "private: static void __cdecl std::locale::facet::facet_Register(class std::locale::facet *)" (?facet_Register@facet@locale@std@@CAXPAV123@@Z) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	
Error	9	error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_ctor(class std::_Locinfo *,char const *)" (?_Locinfo_ctor@_Locinfo@std@@SAXPAV12@PBD@Z) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	
Error	10	error LNK2005: "public: static void __cdecl std::_Locinfo::_Locinfo_dtor(class std::_Locinfo *)" (?_Locinfo_dtor@_Locinfo@std@@SAXPAV12@@Z) already defined in msvcprt.lib(MSVCP80.dll)	libcpmtd.lib	

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest