[Insight-users] fixes for Borland build of /Auxiliary

dean.inglis@on.aibn.com dean.inglis@on.aibn.com
Tue, 1 Oct 2002 1:25:13 -0400


Hi,

after tinkering for a bit, I've got Auxiliary built
but could someone check these suggested changes,
and, if correct,  commit them?

1) /Auxiliary/CMakeLists.txt - add 
     IF (WIN32)
      ADD_DEFINITIONS (-DWIN32)
     ENDIF (WIN32)
before
  INCLUDE_DIRECTORIES(
     ${ITK_SOURCE_DIR}/Auxiliary/FltkImageViewer
     ${ITK_BINARY_DIR}/Auxiliary/FltkImageViewer
     ${FLTK_INCLUDE_PATH}
     )
to fix the WINGDIAPI declaration pb.

2) Auxiliary/fltkTimeProbesCollectorGUI.h - add
using namespace itk;
before the class definition:
class TimeProbesCollectorGUI : public
itk::TimeProbesCollectorBase {

3) Borland doesn't like un-named typedef enums:
  typedef enum{
   BLAH_1,
   BLAH_2  
  };
should be 
  typedef enum{
   BLAH_1,
   BLAH_2  
  } blahs;
so, in /Auxialiary/fltkImageViewer/
fltkRGBImage2DViewerWindow.cxx ~ line 418
and
fltkImage2DViewerWindow.cxx ~ line 449
the typedef enums should be named.

Then the building of examples will continue until
a crash at /Examples/ITKRegistrationLib ...

getting closer, closer ...

regards,
Dean