DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-05-29, 10:43

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Linker errors
PostPosted: Mon, 2010-03-15, 12:15 
Offline

Joined: Sat, 2010-03-13, 20:23
Posts: 1
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?


Top
 Profile  
 
 Post subject:
PostPosted: Mon, 2010-03-15, 16:55 
Offline

Joined: Tue, 2009-09-22, 12:57
Posts: 18
Location: DKFZ Heidelberg
hello martina,

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


Top
 Profile  
 
 Post subject:
PostPosted: Fri, 2010-03-19, 09:18 
Offline

Joined: Tue, 2009-09-22, 12:57
Posts: 18
Location: DKFZ Heidelberg
Problem solved.

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


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

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