Im trying to use dcmtkrt.
I got a compiler error message that was caused by streams.h. The namespace LOG4CPLUS_STREAM_NAMESPACE seemed to be unknown.
I inserted #define LOG4CPLUS_STREAM_NAMESPACE std
since the namespace LOG4CPLUS_STREAM_NAMESPACE seemed to be used in context with stuff from std.
However, now I get a warning:
warning C4512: 'DcmObject::PrintHelper' : assignment operater could not be generated
and linker errors such as:
error LNK2019: unresolved external symbol "public: static class OFCondition __cdecl DcmIntegerString::checkValue(class OFString const &,class OFString const &)" (?checkValue@DcmIntegerString@@SA?AVOFCondition@@ABVOFString@@0@Z) referenced in function "public: class OFCondition __thiscall DRTROIContourSequence::Item::setROIDisplayColor(class OFString const &,bool)" (?setROIDisplayColor@Item@DRTROIContourSequence@@QAE?AVOFCondition@@ABVOFString@@_N@Z)
dcmrt.lib
Its interesting that the problem appears in case I try to use dcmtkrt in context with MevisLab. Without MevisLab it works fine after inserting
#define LOG4CPLUS_STREAM_NAMESPACE std
in stream.h
The problem appears when using :
long numberOfStructures = rcs->getNumberOfItems();
in the following context:
DRTROIContourSequence *rcs;
boost::shared_ptr<DRTStructureSetIOD> structure;
rcs = &structure->getROIContoursSequence();
long numberOfStructures = rcs->getNumberOfItems();
without the last line, like this:
DRTROIContourSequence *rcs;
boost::shared_ptr<DRTStructureSetIOD> structure;
rcs = &structure->getROIContoursSequence();
//long numberOfStructures = rcs->getNumberOfItems();
I can compile and link it.
Does anybody have an idea how to solve this?
Linker errors
Moderator: Moderator Team
-
- Posts: 18
- Joined: Tue, 2009-09-22, 12:57
- Location: DKFZ Heidelberg
-
- Posts: 18
- Joined: Tue, 2009-09-22, 12:57
- Location: DKFZ Heidelberg
Who is online
Users browsing this forum: No registered users and 1 guest