[IGSTK-Users] igstk MeshReader Problems

Aswin Mathews aswinjohn at gmail.com
Tue Jun 24 11:08:24 EDT 2008


Hi,

I am having some trouble with igstkMeshReader class. When I include it, I
get a host of errors which are reproduced below.

2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2143: syntax error : missing ')' before '::'
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2660: 'igstk::Logger::ShouldBuildMessage' : function does not take 0
arguments
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2059: syntax error : ')'
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2143: syntax error : missing ';' before '{'
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2589: ',' : illegal token on right side of '::'
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2143: syntax error : missing ')' before '::'
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2660: 'itk::LoggerBase::Write' : function does not take 0 arguments
2>g:\binary\sandbox\sourcelatest\igstkSpatialObjectReader.txx(247) : error
C2059: syntax error : ')'

The error line in igstkSpatialObjectReader is

igstkLogMacro( DEBUG, "igstk::SpatialObjectReader::\
                                ReportObjectProcessing called...\n");

The igstk Log Macro thats causing all these errors in igstkMacros.h is :
#define igstkLogMacro( x, y)  \
{         \
  if (this->GetLogger() ) \
    {  \
    if (this->GetLogger()->ShouldBuildMessage( ::igstk::Logger::x ) ) \
      { \
      ::itk::OStringStream message; \
      message << y; \
      this->GetLogger()->Write(::itk::Logger::x, message.str()); \
      } \
    }  \
}


Any idea what is causing these errors?
Also, igstkMeshreader's constructor and destructor are protected. Was this
intentional? Should I create a derived class of the Mesh Reader before using
it?

Thanks,

Aswin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/igstk-users/attachments/20080624/58d06d56/attachment.html>


More information about the IGSTK-Users mailing list