MantisBT - VTK
View Issue Details
0011052VTK(No Category)public2010-07-28 12:482013-04-05 20:13
Mike Jackson 
Marcus D. Hanwell 
normalblockalways
closedfixed 
 
 
0011052: Compile Error with Clang on vtkPlotStacked.cxx
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
No tags attached.
Issue History
2010-07-28 12:48Mike JacksonNew Issue
2010-07-28 12:49Mike JacksonNote Added: 0021520
2010-07-28 12:56Mike JacksonNote Added: 0021522
2010-07-28 14:05Marcus D. HanwellStatusbacklog => tabled
2010-07-28 14:05Marcus D. HanwellAssigned To => Marcus D. Hanwell
2010-07-28 16:42Marcus D. HanwellNote Added: 0021532
2010-07-28 16:42Marcus D. HanwellStatustabled => @80@
2010-07-28 16:42Marcus D. HanwellResolutionopen => fixed
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 20:13Berk GeveciStatuscustomer review => closed

Notes
(0021520)
Mike Jackson   
2010-07-28 12:49   
This also effects vtkPlotBar.cxx
(0021522)
Mike Jackson   
2010-07-28 12:56   
This also effects vtkPlotPoints.cxx
(0021532)
Marcus D. Hanwell   
2010-07-28 16:42   
Commit fb29df2 addresses the issues you pointed out. I can't seem to teach clang how to find some of my system headers here (specifically iostream.h) despite adding system include paths to the source file indicated, and so I was not able to verify the build continued. I will see if I can get clang working locally at some point soon.