[vtkusers] Conversion to v4.0

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Mon Jun 17 16:29:59 EDT 2002


/*  ctime.h
    Standard C header file wrapper for time.h
*/

You mioght be getting this included as vtk4 does include a lot of standard
headers. see some of the VTK_USE_STUFF flags in cmake and try tuirning off
some of them

just guessing

JB



----- Original Message -----
From: "James C. Robinson" <j.robinson at kepler.ie>
To: "Vtkusers at Public. Kitware. Com" <vtkusers at public.kitware.com>
Sent: Monday, June 17, 2002 6:13 PM
Subject: [vtkusers] Conversion to v4.0


> Dear All,
>
> I am currently trying to convert from VTK v3.2 to v4.0. I am recompiling
my
> code and am getting a strange error. The following line:
>
> PauseSpan += CTime::GetCurrentTime() - Pause_time ;
>
> Results in the following error:
>
> C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2039:
> 'GetCurrentTime' : is not a member of 'CTime'
>         C:\Program Files\Microsoft Visual
> Studio\VC98\MFC\Include\afx.h(1532) : see declaration of 'CTime'
> C:\Jim\Programming\mfc\Kes\PanMeshv3.1\GraphWindow.cpp(465) : error C2065:
> 'GetCurrentTime' : undeclared identifier
>
> However, the definition of CTime does include a GetCurrentTime method:
>
> class CTime
> {
> public:
>
> // Constructors
> static CTime PASCAL GetCurrentTime();
>
> If I remove the include files that are connected to vtk this error
> disappears. Has anybody an idea of the source of the error (NB: The same
> file compiles without erro when the include files are the v3.2 versions).
>
> Regards,
>
> Jim
> ______________________
>
> Dr. James C. Robinson, BE,MEngSc,PhD,CEng,MIEI,
> Kepler Engineering Software Ltd.,
> 42 Rivergrove,
> Glanmire, Co. Cork,
> Eire
>
> Tel:         +353-21-4822028
> Tel:         +353-87-2393010
> Fax:        +353-21-4822721
> E-mail:     j.robinson at kepler.ie
> ______________________
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list