On Mon, 2015-11-09 at 20:29 +0100, Andreas Tille wrote:
> ...
> /usr/include/dcmtk/dcmsr/dsrdoc.h:649:25: note:   candidate expects 2
> arguments, 0 provided
> /build/dicomscope-3.6.0/interface/libsrc/DSRDocument.cpp: In function
> '_jstring* Java_J2Ci_jDSRDocument_getAccessionNumber(JNIEnv*,
> jobject)':
> /build/dicomscope-3.6.0/interface/libsrc/DSRDocument.cpp:734:50:
> error: no matching function for call to
> 'DSRDocument::getAccessionNumber()'
>      const char *string = doc->getAccessionNumber();

Seems like this should be now: 


OFString ofstring; 
OFCondition cond = doc->getAccessionNumber(ofstring, 0); 

if (cond.bad() ) {
        < return error condition > ??!! 
}
const char * string = ofstring.c_str(); 


I'll have a look later what should be done in case of "cond.bad()". 

Best 
Gert 

Reply via email to