Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
sfzhang
Posts: 10
Joined: Thu, 2014-08-28, 08:30
Location: Shanghai, China

Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2

#1 Post by sfzhang »

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

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2

#2 Post by J. Riesmeier »

The current DCMTK snapshot should solve this issue because it contains the following commit: http://git.dcmtk.org/web?p=dcmtk.git;a= ... a84f96ce2e

sfzhang
Posts: 10
Joined: Thu, 2014-08-28, 08:30
Location: Shanghai, China

Re: Redefined error when mixed dcmtk-3.6.0 & log4cplus-1.1.2

#3 Post by sfzhang »

Thank's your kind reply! @J. Riesmeier
I will try it!

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest