from the online manual to work. I use the first lines
of the example:
Code: Select all
#define HAVE_CONFIG_H
#include <dcmtk/dcmdata/dcfilefo.h>
#include <dcmtk/dcmdata/dcdeftag.h>
#include <dcmtk/dcmdata/dcuid.h>
int main() {
DcmFileFormat fileformat;
DcmDataset *dataset = fileformat.getDataset();
OFCondition status=dataset->putAndInsertString(DCM_SOPClassUID, UID_SecondaryCaptureImageStorage);
if(status.bad()) cerr << "ERROR: " << status.text() << endl;
return 0;
}
using the line
Code: Select all
g++ dcmtest.cpp -ldcmdata -lofstd -lz -o dcmtest
Code: Select all
ERROR: Illegal Call, perhaps wrong parameters