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>&nbsp;&nbsp;&nbsp; #include &quot;dcmtk/config/cfwin32.h&quot;<br>#else<br>&nbsp;&nbsp;&nbsp; #include &quot;dcmtk/config/cfunix.h&quot;<br>#endif<br><br>#include &quot;dcmtk/config/osconfig.h&quot;
<br>#include &quot;dcmtk/ofstd/oftypes.h&quot;<br>#include &quot;dcmtk/dcmdata/dctk.h&quot;<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 &#39;do&#39;
<br>/usr/local/dicom/include/dcmtk/dcmdata/dcobject.h:251: error: expected unqualified-id before &#39;while&#39;<br>/usr/local/dicom/include/dcmtk/dcmdata/dcbytstr.h:198: error: expected unqualified-id before &#39;do&#39;
<br>/usr/local/dicom/include/dcmtk/dcmdata/dcbytstr.h:198: error: expected unqualified-id before &#39;while&#39;<br>/usr/local/dicom/include/dcmtk/dcmdata/dcitem.h:208: error: expected unqualified-id before &#39;do&#39;<br>
/usr/local/dicom/include/dcmtk/dcmdata/dcitem.h:208: error: expected unqualified-id before &#39;while&#39;<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