After successfully compile and install DCMTK, some error appeared, most of them are related to setup path of DCMTK.
But, some others still persist.
My environment :
- Microsoft Visual studio community 2015 / version 14.0.25123.00 Update2
- Windows 7 Professional 64 bits
- Qt 5.6.3
- dcmtk-3.6.2
- Cmake-3.9.4-win64-x64
- dcmtk-3.6.2-win64-support_MD-msvc-14.0
Those some screenshot of compile and installation steps :
build
https://prntscr.com/hc2j6u
http://prntscr.com/hc2on8
http://prntscr.com/hc2pj3
installation
http://prntscr.com/hc2pqm
Now, I include DCMTK to my project, on visual studio. ( in the begin it was a problem with include c:\DCMTK to "include directories " setting, it was fixed later.
http://prntscr.com/hc2qyz
Now, clean and rebuild my project, some error still appeared, but this time, are related to instruction in header files :
Code: Select all
Severity Code Description File Line Suppression State
Error (active) expected an identifier c:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error (active) no instance of overloaded function "dcmtk::log4cplus::Logger::getInstance" matches the argument list c:\DCMTK\include\dcmtk\oflog\logmacro.h 106
Error (active) no operator "+" matches these operands c:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error (active) no operator "+" matches these operands c:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error (active) expected an identifier c:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) C:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' C:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) C:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' C:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error C2665 'dcmtk::log4cplus::Logger::getInstance': none of the 2 overloads could convert all the argument types C:\DCMTK\include\dcmtk\oflog\logmacro.h 106
Error C2589 '(': illegal token on right side of '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error C2059 syntax error: '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error C2589 '(': illegal token on right side of '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
Error C2059 syntax error: '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) C:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' C:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) C:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' C:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error C2665 'dcmtk::log4cplus::Logger::getInstance': none of the 2 overloads could convert all the argument types C:\DCMTK\include\dcmtk\oflog\logmacro.h 106
Error C2589 '(': illegal token on right side of '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error C2059 syntax error: '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error C2589 '(': illegal token on right side of '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
Error C2059 syntax error: '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) C:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' C:\DCMTK\include\dcmtk\oflog\tracelog.h 59
Error C2678 binary '+': no operator found which takes a left-hand operand of type 'const wchar_t [8]' (or there is no acceptable conversion) C:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error C2664 'void dcmtk::log4cplus::Logger::forcedLog(const dcmtk::log4cplus::spi::InternalLoggingEvent &) const': cannot convert argument 3 from 'int' to 'const char *' C:\DCMTK\include\dcmtk\oflog\tracelog.h 64
Error C2665 'dcmtk::log4cplus::Logger::getInstance': none of the 2 overloads could convert all the argument types C:\DCMTK\include\dcmtk\oflog\logmacro.h 106
Error C2589 '(': illegal token on right side of '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error C2059 syntax error: '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
Error C2589 '(': illegal token on right side of '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
Error C2059 syntax error: '::' C:\DCMTK\include\dcmtk\ofstd\oflimits.h 78
tracelog.h
Severity Code Description File Line Suppression State
Error (active) expected an identifier c:\DCMTK\include\dcmtk\ofstd\oflimits.h 72
this is my suggestion
http://prntscr.com/hc2xvt
http://prntscr.com/hc2zoa
but others errors, I can't fix ?
Please, could you check this issues.
Thanks again to Offis team for all support and availability.