mollynnobrien / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

build fails under linux when compiling Code/VisSupport/VTK/btkVTKSegmentsFramesSource.cpp #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. check out revision 680
2. create a makefile with CMake
3. run make

What is the expected output? What do you see instead?
Expected output: complete build
Actual output: 

[ 31%] Building CXX object 
Code/VisSupport/VTK/CMakeFiles/BTKVTK.dir/btkVTKSegmentsFramesSource.cpp.o
In file included from 
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.cpp:36:0:
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:60:48: 
error: ‘vector’ in namespace ‘std’ does not name a type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:60:53: 
error: ISO C++ forbids declaration of ‘parameter’ with no type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:60:59: 
error: expected ‘,’ or ‘...’ before ‘<’ token
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:61:59: 
error: ‘vector’ in namespace ‘std’ does not name a type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:61:64: 
error: ISO C++ forbids declaration of ‘parameter’ with no type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:61:70: 
error: expected ‘,’ or ‘...’ before ‘<’ token
In file included from 
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.cpp:36:0:
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:94:51: 
error: ‘std::vector’ has not been declared
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:94:57: 
error: expected ‘,’ or ‘...’ before ‘<’ token
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:31: 
error: ‘vector’ in namespace ‘std’ does not name a type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:36: 
error: ISO C++ forbids declaration of ‘parameter’ with no type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:42: 
error: expected ‘,’ or ‘...’ before ‘<’ token
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:99:7: 
error: ‘vector’ in namespace ‘std’ does not name a type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:100:7: 
error: ‘vector’ in namespace ‘std’ does not name a type
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h: In 
constructor 
‘btk::VTKSegmentsFramesSource::SegmentDefinition::SegmentDefinition(int)’:
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:82: 
error: class ‘btk::VTKSegmentsFramesSource::SegmentDefinition’ does not 
have any field named ‘markerIds’
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:92: 
error: ‘m’ was not declared in this scope
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:96: 
error: class ‘btk::VTKSegmentsFramesSource::SegmentDefinition’ does not 
have any field named ‘links’
<path_to_b-tk>/b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h:98:102: 
error: ‘l’ was not declared in this scope
...

What version of the product are you using? On what operating system?
current revision (680)

Please provide any additional information below.
A simple

#include <vector>

to b-tk/Code/VisSupport/VTK/btkVTKSegmentsFramesSource.h fixes the problem.

Original issue reported on code.google.com by martin.f...@gmail.com on 9 Jul 2011 at 9:06

GoogleCodeExporter commented 8 years ago

Original comment by arnaud.barre on 11 Jul 2011 at 9:29

GoogleCodeExporter commented 8 years ago
Fixed by the revision r682.

Original comment by arnaud.barre on 11 Jul 2011 at 10:23