View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011052VTK(No Category)public2010-07-28 12:482013-04-05 20:13
ReporterMike Jackson 
Assigned ToMarcus D. Hanwell 
PrioritynormalSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0011052: Compile Error with Clang on vtkPlotStacked.cxx
DescriptionThere 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
TagsNo tags attached.
Project
Type
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0021520)
Mike Jackson (reporter)
2010-07-28 12:49

This also effects vtkPlotBar.cxx
(0021522)
Mike Jackson (reporter)
2010-07-28 12:56

This also effects vtkPlotPoints.cxx
(0021532)
Marcus D. Hanwell (developer)
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.

- Issue History
Date Modified Username Field Change
2010-07-28 12:48 Mike Jackson New Issue
2010-07-28 12:49 Mike Jackson Note Added: 0021520
2010-07-28 12:56 Mike Jackson Note Added: 0021522
2010-07-28 14:05 Marcus D. Hanwell Status backlog => tabled
2010-07-28 14:05 Marcus D. Hanwell Assigned To => Marcus D. Hanwell
2010-07-28 16:42 Marcus D. Hanwell Note Added: 0021532
2010-07-28 16:42 Marcus D. Hanwell Status tabled => @80@
2010-07-28 16:42 Marcus D. Hanwell Resolution open => fixed
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2013-04-05 20:13 Berk Geveci Status customer review => closed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker