DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-11-25, 10:22

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Log pattern problem
PostPosted: Sun, 2017-10-08, 11:07 
Offline

Joined: Mon, 2006-06-19, 15:21
Posts: 15
I try to use a custom pattern for file logging:

Code:
   const char *pattern = "%D{%Y-%m-%d %H:%M:%S.%q} %5p: %m%n";
   OFunique_ptr<dcmtk::log4cplus::Layout> layout(new dcmtk::log4cplus::PatternLayout(pattern));
         logfile->setLayout(OFmove(layout));
//...
   dcmtk::log4cplus::SharedAppenderPtr logfile(new dcmtk::log4cplus::DailyRollingFileAppender(
         strPath,               // file to write log to
         dcmtk::log4cplus::DAILY,   // one log file per day
         false,                  // do not flush on each log entry for faster processing
         30                     // keep 30 backup files
         ));
   logfile->setLayout(OFmove(layout));


I get the following Linker error:
Code:
error LNK2001: Nicht aufgelöstes externes Symbol ""private: __thiscall OFunique_ptr<class dcmtk::log4cplus::Layout>::OFunique_ptr<class dcmtk::log4cplus::Layout>(class OFunique_ptr<class dcmtk::log4cplus::Layout> const &)" (??0?$OFunique_ptr@VLayout@log4cplus@dcmtk@@@@$$FAAE@ABV0@@Z)".
1>D:\Develop\IBox\IBoxTouch\trunk\Release\libDICOM.dll : fatal error LNK1120: 1 nicht aufgelöste Externe

the error disappears when I remove the last line (logfile->setLayout(OFmove(layout)).
What's wrong?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group