Use of DCMTK on Ubuntu 14.04

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
CharlR
Posts: 2
Joined: Wed, 2014-09-17, 10:49

Use of DCMTK on Ubuntu 14.04

#1 Post by CharlR »

Dear all,

I have successfully compiled dcmtk after the source code downloading. However, using my Makefile and my own program, I obtain a compilation error.

finalDCM.cpp: In function ‘int main()’:
finalDCM.cpp:13:53: error: ‘DCM_PatientsName’ was not declared in this scope
if (fileformat.getDataset()->findAndGetOFString(DCM_PatientsName, patientsName).good())

Using the forum remarks, I have checked all the libaries, headers and their respective order. The same program works on an older Red Hat version.

Any idea?

J. Riesmeier
DCMTK Developer
Posts: 2506
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

Re: Use of DCMTK on Ubuntu 14.04

#2 Post by J. Riesmeier »

The attribute names changed some years ago. DCMTK now uses the official keywords from DICOM part 6.

http://support.dcmtk.org/redmine/projec ... ionary2009

CharlR
Posts: 2
Joined: Wed, 2014-09-17, 10:49

Re: Use of DCMTK on Ubuntu 14.04

#3 Post by CharlR »

Thanks for your answer. Now, I still have this error :

finalDCM.cpp:(.text+0x3a): référence indéfinie vers « OFFilename::OFFilename(char const*, bool) »
finalDCM.cpp:(.text+0x79): référence indéfinie vers « DcmFileFormat::loadFile(OFFilename const&, E_TransferSyntax, E_GrpLenEncoding, unsigned long, E_FileReadMode) »
finalDCM.cpp:(.text+0x8a): référence indéfinie vers « OFFilename::~OFFilename() »
finalDCM.cpp:(.text+0x230): référence indéfinie vers « OFFilename::~OFFilename() »

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest