i have compiling dcmtk from git on windows server 2019 using visual studio 2017 and performed "INSTALL".
In my project, I want to call dcmtk function so I added:
the folder include in "additional include directory"
and the folder lib in the linker ("additional libraries directory") using visual studio.
I put:
Code: Select all
#include "dcmtk/config/osconfig.h"
#include "dcmtk/dcmdata/dcfilefo.h"
#include "dcmtk/dcmdata/dcdict.h"
Severity Code Description Project File Line Suppression State
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) Clocks.native g:\contracts\installdcmtkcpp11\include\dcmtk\oflog\tracelog.h 59
Severity Code Description Project File Line Suppression State
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' Clocks.native g:\contracts\installdcmtkcpp11\include\dcmtk\oflog\tracelog.h 59
Severity Code Description Project File Line Suppression State
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) Clocks.native g:\contracts\installdcmtkcpp11\include\dcmtk\oflog\tracelog.h 64
Severity Code Description Project File Line Suppression State
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' Clocks.native g:\contracts\installdcmtkcpp11\include\dcmtk\oflog\tracelog.h 64
Severity Code Description Project File Line Suppression State
Error C2665 'dcmtk::log4cplus::Logger::getInstance': none of the 2 overloads could convert all the argument types Clocks.native g:\contracts\installdcmtkcpp11\include\dcmtk\oflog\logmacro.h 106
what did I do wrong ?