Exact Steps to Compile Sample DCMTK Program

All other questions regarding DICOMscope

Moderator: Moderator Team

Post Reply
Message
Author
swaroopcool21
Posts: 12
Joined: Wed, 2011-03-23, 12:40
Location: Alkmaar, The Netherlands
Contact:

Exact Steps to Compile Sample DCMTK Program

#1 Post by swaroopcool21 » Wed, 2011-03-30, 12:58

Hello,
I want to use DCMTK in my application.

To start with I have taken the following code --

Code: Select all

DcmFileFormat fileformat;
OFCondition status = fileformat.loadFile("test.dcm");
if (status.good())
{
  OFString patientName;
  if (fileformat.getDataset()->findAndGetOFString(DCM_PatientName, patientName).good())
  {
    cout << "Patient's Name: " << patientName << endl;
  } else
    cerr << "Error: cannot access Patient's Name!" << endl;
} else
  cerr << "Error: cannot read DICOM file (" << status.text() << ")" << endl;
However,
I would be thankful if you could tell me which files to include (#include)
and exact steps for compilation on linux ubuntu.

Thanks in advance...
---
Manohar Kuse
SenoCAD Research
Alkmaar, The Netherlands

Michael Onken
DCMTK Developer
Posts: 1706
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#2 Post by Michael Onken » Wed, 2011-03-30, 16:46

This has nothing to do with DICOMscope and therefore, should not be discussed here. Also, do not cross-post if you are askingnearly the same in different threads.

Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest