View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014988VTK(No Category)public2014-09-09 13:102015-10-20 16:45
Reporterjohan andruejol 
Assigned ToBill Lorensen 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.0.0 
Target VersionFixed in Version 
Summary0014988: Compilation error when using metaIO with ITK and VTK
DescriptionIn metaIO, the namespace depends on a header file. In ITK, no namespace is used but in VTK one is used.
When building a project that depends on itkMetaEvent.h, (or one of its dependencies like metaIO) if the first header file included is VTK's, the project will fail to compile with the error:

ITKv4\Modules\Core\SpatialObjects\include\itkMetaEvent.h(31): error C2039: 'MetaEvent' : is not a member of '`global namespace''
ITKv4\Modules\Core\SpatialObjects\include\itkMetaEvent.h(31): error C2499: 'itk::MetaEvent' : a class cannot be its own base class

See also: https://github.com/vovythevov/MetaIOBug [^]
Additional InformationIf the itk headers are included BEFORE in the CMakeLists.txt file, then there is no compilation error. Suggest this workaround until more effort can be spent.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0033319)
johan andruejol (reporter)
2014-09-09 13:10

Corresponding issue: https://issues.itk.org/jira/browse/ITK-3312 [^]
(0035317)
Bill Lorensen (developer)
2015-10-20 16:43

As of VTK 6.3 and ITK 4.8 this problem is resolved.

 Issue History
Date Modified Username Field Change
2014-09-09 13:10 johan andruejol New Issue
2014-09-09 13:10 johan andruejol Note Added: 0033319
2014-09-30 08:41 Bill Lorensen Assigned To => Bill Lorensen
2014-09-30 08:41 Bill Lorensen Status backlog => tabled
2014-09-30 08:41 Bill Lorensen Description Updated
2014-09-30 08:41 Bill Lorensen Tag Attached: hackaton
2014-10-01 12:40 Berk Geveci Status tabled => backlog
2014-10-03 15:49 Bill Lorensen Reproducibility have not tried => always
2014-10-03 15:49 Bill Lorensen Additional Information Updated
2015-10-20 12:34 Bill Lorensen Tag Detached: hackaton
2015-10-20 16:43 Bill Lorensen Note Added: 0035317
2015-10-20 16:44 Bill Lorensen Resolution open => fixed
2015-10-20 16:45 Bill Lorensen Status backlog => closed


Copyright © 2000 - 2018 MantisBT Team