Linker errors

Questions regarding the DCMRT library, a DCMTK add-on that implements support for the various DICOM Radiation Therapy (RT) IODs

Moderator: Moderator Team

Post Reply
Message
Author
Martina
Posts: 1
Joined: Sat, 2010-03-13, 20:23

Linker errors

#1 Post by Martina » Mon, 2010-03-15, 12:15

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?

Oliver Nix
Posts: 18
Joined: Tue, 2009-09-22, 12:57
Location: DKFZ Heidelberg

#2 Post by Oliver Nix » Mon, 2010-03-15, 16:55

hello martina,

please indicate which version of the prerelease you are using.
Some details about your project settings would be useful.

Oliver Nix
Posts: 18
Joined: Tue, 2009-09-22, 12:57
Location: DKFZ Heidelberg

#3 Post by Oliver Nix » Fri, 2010-03-19, 09:18

Problem solved.

When using dcmrt together with MeVisLab tests.lib is required.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest