All other questions regarding DCMTK
Moderator: Moderator Team
sfzhang
Posts: 10 Joined: Thu, 2014-08-28, 08:30
Location: Shanghai, China
#1
Post
by sfzhang » Fri, 2014-08-29, 13:41
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. Is there any way to solve this problem? Thank's for help!
Code: Select all
/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’
See also
http://stackoverflow.com/questions/2553 ... plus-1-1-2
sfzhang
Posts: 10 Joined: Thu, 2014-08-28, 08:30
Location: Shanghai, China
#3
Post
by sfzhang » Fri, 2014-08-29, 14:34
Thank's your kind reply! @J. Riesmeier
I will try it!
Users browsing this forum: Bing [Bot] , Google [Bot] and 1 guest