Hi everyone,<br><br>My question is not really related to VTK but I think many people here have experience using DCMTK, so worth a shot!<br><br>I have a project that works well on windows and linux and uses VTK along with DCMTK. I recently tried to port in to OS X and get the following errors from the DCMTK files. DCMTK compiled and installed fine.
<br><br>My includes look as follows:<br><br>#ifdef _WIN32<br> #include "dcmtk/config/cfwin32.h"<br>#else<br> #include "dcmtk/config/cfunix.h"<br>#endif<br><br>#include "dcmtk/config/osconfig.h"
<br>#include "dcmtk/ofstd/oftypes.h"<br>#include "dcmtk/dcmdata/dctk.h"<br><br>During compilation, I am getting the following error:<br><br>/usr/local/dicom/include/dcmtk/dcmdata/dcobject.h:251: error: expected unqualified-id before 'do'
<br>/usr/local/dicom/include/dcmtk/dcmdata/dcobject.h:251: error: expected unqualified-id before 'while'<br>/usr/local/dicom/include/dcmtk/dcmdata/dcbytstr.h:198: error: expected unqualified-id before 'do'
<br>/usr/local/dicom/include/dcmtk/dcmdata/dcbytstr.h:198: error: expected unqualified-id before 'while'<br>/usr/local/dicom/include/dcmtk/dcmdata/dcitem.h:208: error: expected unqualified-id before 'do'<br>
/usr/local/dicom/include/dcmtk/dcmdata/dcitem.h:208: error: expected unqualified-id before 'while'<br><br>I checked these header files and it is always this declaration:<br><br>virtual OFCondition verify(const OFBool autocorrect = OFFalse );
<br><br>I was wondering if anyone else has come across this problem and can offer some insight on how to solve it.<br><br>Many thanks.<br><br>Cheers,<br><br>Anja