Hi,<br><br>I am having some trouble with igstkMeshReader class. When I include it, I get a host of errors which are reproduced below.<br><br><div style="margin-left: 40px;">2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2143: syntax error : missing &#39;)&#39; before &#39;::&#39;<br>
2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2660: &#39;igstk::Logger::ShouldBuildMessage&#39; : function does not take 0 arguments<br>2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2059: syntax error : &#39;)&#39;<br>
2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2143: syntax error : missing &#39;;&#39; before &#39;{&#39;<br>2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2589: &#39;,&#39; : illegal token on right side of &#39;::&#39;<br>
2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2143: syntax error : missing &#39;)&#39; before &#39;::&#39;<br>2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2660: &#39;itk::LoggerBase::Write&#39; : function does not take 0 arguments<br>
2&gt;g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2059: syntax error : &#39;)&#39;<br></div><br>The error line in igstkSpatialObjectReader is <br><br><div style="margin-left: 40px;">igstkLogMacro( DEBUG, &quot;igstk::SpatialObjectReader::\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReportObjectProcessing called...\n&quot;);<br></div><br>The igstk Log Macro thats causing all these errors in igstkMacros.h is :<br><div style="margin-left: 40px;">#define igstkLogMacro( x, y)&nbsp; \<br>
{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \<br>&nbsp; if (this-&gt;GetLogger() ) \<br>&nbsp;&nbsp;&nbsp; {&nbsp; \ <br>&nbsp;&nbsp;&nbsp; if (this-&gt;GetLogger()-&gt;ShouldBuildMessage( ::igstk::Logger::x ) ) \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::itk::OStringStream message; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; message &lt;&lt; y; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this-&gt;GetLogger()-&gt;Write(::itk::Logger::x, message.str()); \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } \<br>&nbsp;&nbsp;&nbsp; }&nbsp; \<br>}<br><br></div><br>Any idea what is causing these errors? <br>Also, igstkMeshreader&#39;s constructor and destructor are protected. Was this intentional? Should I create a derived class of the Mesh Reader before using it?<br>
<br>Thanks,<br><br>Aswin.<br>