Code: Select all
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));
Code: Select all
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
What's wrong?