[vtkusers] Fwd: error when including vtkSelectionNode

David E DeMarle dave.demarle at kitware.com
Mon Aug 6 14:15:38 EDT 2012


As long as you don't have to use the vtkSelectionNode::EPSILON() key
directly in your own code, moving the include above your #define
should be alright I think.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909



---------- Forwarded message ----------
From: Gonzalo Amadio <gonzaloamadio at gmail.com>
Date: Mon, Aug 6, 2012 at 1:52 PM
Subject: Re: [vtkusers] error when including vtkSelectionNode
To: David E DeMarle <dave.demarle at kitware.com>


Yes, it is true. Thank you. I found it, I have "#define EPSILON 0.001"

One more question. I include vtkSelectionNode before the file that
contains that epslion defining line.
There will be no problems? or I have to change the name of that
variable call EPSILON (my variable) ?

Thank you!


2012/8/6 David E DeMarle <dave.demarle at kitware.com>
>
> The error:
> >> /VTK-src/Filtering/vtkSelectionNode.h:168:35: error: expected
> >> unqualified-id before numeric constant
>
> Says that your compiler doesn't like this line in vtkSelectionNode.h
>   static vtkInformationDoubleKey* EPSILON();
>
> "EPSILON" is probably #defines to a number in your code of a header
> somewhere above this include.
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
>
> On Mon, Aug 6, 2012 at 1:12 PM, Gonzalo Amadio <gonzaloamadio at gmail.com> wrote:
> > I have an error when adding this line to my program.
> >
> >> #include <vtkSelectionNode.h>
> >
> >
> > The error I have is :
> >
> >> /VTK-src/Filtering/vtkSelectionNode.h:168:35: error: expected
> >> unqualified-id before numeric constant
> >> /VTK-src/Filtering/vtkSelectionNode.h:168:35: error: expected ‘;’ before
> >> numeric constant
> >
> >
> >>   if (this->SelectionData)
> >>    {
> >> //THIS IS LINE 168
> >>    this->SelectionData->PrintSelf(os, indent.GetNextIndent());
> >>    }
> >
> >
> > I have not touched the file. I attached it, just in case.
> > I am using VTK 5.6.1
> >
> > Any ideas of what can it be?
> >
> > --
> > --------
> > Gonzalo Amadio
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >




--
--------
Gonzalo Amadio



More information about the vtkusers mailing list