I found the Cmakelist.txt missing Platform-specific settings which is in 3.6.0 version.
Should I add these settings in Cmakelist.txt by myself?
I want to use MDd for code generation.
I compiled it to 64bit vs11 version in win7.
And I found errors in MTd compiling when using dcmdata.lib in Multi-Byte Character Set:
And found this errors in Unicode Character Set :ClCompile:
1> Source.cpp
1>oflog.lib(winsock.obj) : error LNK2019: unresolved external symbol __imp_WSASocketA referenced in function "__int64 __cdecl dcmtk::log4cplus::helpers::connectSocket(class OFString const &,unsigned short,bool,enum dcmtk::log4cplus::helpers::SocketState &)" (?connectSocket@helpers@log4cplus@dcmtk@@YA_JAEBVOFString@@G_NAEAW4SocketState@123@@Z)
1>oflog.lib(winsock.obj) : error LNK2019: unresolved external symbol __imp_WSAStringToAddressA referenced in function "__int64 __cdecl dcmtk::log4cplus::helpers::connectSocket(class OFString const &,unsigned short,bool,enum dcmtk::log4cplus::helpers::SocketState &)" (?connectSocket@helpers@log4cplus@dcmtk@@YA_JAEBVOFString@@G_NAEAW4SocketState@123@@Z)
1>E:\Projects\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe : fatal error LNK1120: 2 unresolved externals
Any suggestion? Thanks!Error 1 error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) E:\Projects\ConsoleApplication1\include\dcmtk\oflog\tracelog.h 59
Error 2 error C2678: binary '+' : no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) E:\Projects\ConsoleApplication1\include\dcmtk\oflog\tracelog.h 64
Error 3 error C2665: 'dcmtk::log4cplus::Logger::getInstance' : none of the 2 overloads could convert all the argument types E:\Projects\ConsoleApplication1\include\dcmtk\oflog\logmacro.h 107