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>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2143: syntax error : missing ')' before '::'<br>
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2660: 'igstk::Logger::ShouldBuildMessage' : function does not take 0 arguments<br>2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2059: syntax error : ')'<br>
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2143: syntax error : missing ';' before '{'<br>2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2589: ',' : illegal token on right side of '::'<br>
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2143: syntax error : missing ')' before '::'<br>2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2660: 'itk::LoggerBase::Write' : function does not take 0 arguments<br>
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error C2059: syntax error : ')'<br></div><br>The error line in igstkSpatialObjectReader is <br><br><div style="margin-left: 40px;">igstkLogMacro( DEBUG, "igstk::SpatialObjectReader::\<br>
ReportObjectProcessing called...\n");<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) \<br>
{ \<br> if (this->GetLogger() ) \<br> { \ <br> if (this->GetLogger()->ShouldBuildMessage( ::igstk::Logger::x ) ) \<br> { \<br> ::itk::OStringStream message; \<br> message << y; \<br>
this->GetLogger()->Write(::itk::Logger::x, message.str()); \<br> } \<br> } \<br>}<br><br></div><br>Any idea what is causing these errors? <br>Also, igstkMeshreader'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>