I use dcmtk-3.6.0 to handle DICOM images, and use the log4cplus-1.1.2 as the logging library. The g++ compiler complained for the redefined error, because dcmtk-3.6.0 also used log4cplus with previous version as logging library.
/usr/local/log4cplus-1.1.2/include/log4cplus/layout.h:72:28: error: redefinition of ‘class log4cplus::Layout’
/usr/include/dcmtk/oflog/layout.h:50:28: error: previous definition of ‘class log4cplus::Layout’
/usr/local/log4cplus-1.1.2/include/log4cplus/layout.h:103:28: error: redefinition of ‘class log4cplus::SimpleLayout’
/usr/include/dcmtk/oflog/layout.h:80:28: error: previous definition of ‘class log4cplus::SimpleLayout’
/usr/local/log4cplus-1.1.2/include/log4cplus/layout.h:158:28: error: redefinition of ‘class log4cplus::TTCCLayout’
Is there any way to solve this problem?