Compile Error with Clang on vtkPlotStacked.cxx
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
There are several functions declared in an anonymous namespace in the vtkPlotBar.cxx source file. CopyToPointsSwitch() CopyToPoints() CopyToPoints()
Since these functions are not declared anywhere else and CopyToPointsSwitch() calls CopyToPoints() the CopyToPointsSwitch() needs to be declared AFTER the CopyToPoints() functions.
Here is the clang error.
/Users/Shared/OpenSource/VTK/Charts/vtkPlotBar.cxx:62:5: error: use of undeclared identifier
'CopyToPoints'
vtkTemplateMacro(
^
In file included from /Users/Shared/OpenSource/VTK/Charts/vtkPlotBar.cxx:16:
In file included from /Users/Shared/OpenSource/VTK/Charts/vtkPlotBar.h:25:
In file included from /Users/Shared/OpenSource/VTK/Charts/vtkPlot.h:24:
In file included from /Users/Shared/OpenSource/VTK/Charts/vtkContextItem.h:25:
In file included from /Users/Shared/OpenSource/VTK/Charts/vtkAbstractContextItem.h:27:
In file included from /Users/Shared/OpenSource/VTK/Common/vtkObject.h:42:
/Users/Shared/OpenSource/VTK/Common/vtkSetGet.h:663:3: note: instantiated from:
vtkTemplateMacroCase(VTK_DOUBLE, double, call);
^
/Users/Shared/OpenSource/VTK/Charts/vtkPlotBar.cxx:62:5: note: instantiated from:
vtkTemplateMacro(
^
/Users/Shared/OpenSource/VTK/Charts/vtkPlotBar.cxx:63:9: note: instantiated from:
CopyToPoints(points,previous_points, a, static_cast<VTK_TT*>(b->GetVoidPointer(0)), n));
^
This is with 535:[mjackson@ferb:Build]$ clang --version clang version 2.8 (trunk 109582) Target: x86_64-apple-darwin9
Thanks Thread model: posix