Hi everyone,
I just got a copy of vtk from cvs and am trying to compile it with gcc4.0.2. I think my compiler is probably confused with some header files but am not sure how to solve this, any suggestions Thanks Building CXX object Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx: In member function ‘void vtkArrayIteratorTemplate<T>::PrintSelf(std::ostream&, vtkIndent)’: /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:129: error: ‘endl’ was not declared in this scope /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:134: error: ‘endl’ was not declared in this scope make[2]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o] Error 1 make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2 make: *** [all] Error 2 _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |
Try adding the following line at the top of the file:
using std::endl; If that works, we can make the change in CVS. Leila Baghdadi wrote: >Hi everyone, > >I just got a copy of vtk from cvs and am trying to compile it with >gcc4.0.2. I think my compiler is probably confused with some header >files but am not sure how to solve this, > >any suggestions > >Thanks > >Building CXX object >Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o >/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx: In member >function ‘void vtkArrayIteratorTemplate<T>::PrintSelf(std::ostream&, >vtkIndent)’: >/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:129: error: >‘endl’ was not declared in this scope >/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:134: error: >‘endl’ was not declared in this scope >make[2]: *** >[Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o] Error 1 >make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2 >make: *** [all] Error 2 > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |
Hello David,
yes that seems to do the trick! I am still building of course, I will e-mail the list if I see any problems. One thing though, I discovered Common/vtkIOStream.h which also has the using declaration for a few functions, was this header meant to be used on the vtkArrayIteratorTemplate.txx file or am I mixing up things. Thanks On Tue, 2006-24-01 at 15:54 -0500, David Gobbi wrote: > Try adding the following line at the top of the file: > > using std::endl; > > If that works, we can make the change in CVS. > > > > Leila Baghdadi wrote: > > >Hi everyone, > > > >I just got a copy of vtk from cvs and am trying to compile it with > >gcc4.0.2. I think my compiler is probably confused with some header > >files but am not sure how to solve this, > > > >any suggestions > > > >Thanks > > > >Building CXX object > >Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o > >/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx: In member > >function ‘void vtkArrayIteratorTemplate<T>::PrintSelf(std::ostream&, > >vtkIndent)’: > >/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:129: error: > >‘endl’ was not declared in this scope > >/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:134: error: > >‘endl’ was not declared in this scope > >make[2]: *** > >[Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o] Error 1 > >make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2 > >make: *** [all] Error 2 > > > > > >_______________________________________________ > >This is the private VTK discussion list. > >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > >Follow this link to subscribe/unsubscribe: > >http://www.vtk.org/mailman/listinfo/vtkusers > > > > > > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |
No, it shouldn't directly include vtkIOStream.h. It should probably
include vtkSystemIncludes.h, but I'm going to look closely at the code to be sure. Leila Baghdadi wrote: >Hello David, > >yes that seems to do the trick! I am still building of course, I will >e-mail the list if I see any problems. > >One thing though, I discovered Common/vtkIOStream.h which also has the >using declaration for a few functions, was this header meant to be used >on the vtkArrayIteratorTemplate.txx file or am I mixing up things. > >Thanks > >On Tue, 2006-24-01 at 15:54 -0500, David Gobbi wrote: > > >>Try adding the following line at the top of the file: >> >> using std::endl; >> >>If that works, we can make the change in CVS. >> >> >> >>Leila Baghdadi wrote: >> >> >> >>>Hi everyone, >>> >>>I just got a copy of vtk from cvs and am trying to compile it with >>>gcc4.0.2. I think my compiler is probably confused with some header >>>files but am not sure how to solve this, >>> >>>any suggestions >>> >>>Thanks >>> >>>Building CXX object >>>Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o >>>/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx: In member >>>function ‘void vtkArrayIteratorTemplate<T>::PrintSelf(std::ostream&, >>>vtkIndent)’: >>>/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:129: error: >>>‘endl’ was not declared in this scope >>>/home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:134: error: >>>‘endl’ was not declared in this scope >>>make[2]: *** >>>[Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o] Error 1 >>>make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2 >>>make: *** [all] Error 2 >>> >>> >>>_______________________________________________ >>>This is the private VTK discussion list. >>>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>>Follow this link to subscribe/unsubscribe: >>>http://www.vtk.org/mailman/listinfo/vtkusers >>> >>> >>> >>> >>> > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |
This problem should now be fixed on the CVS head. The problem was that
vtkArrayIteratorTemplate.txx gets included in the wrapper files. Now, for wrapper files vtkSystemIncludes.h does not include vtkIOStream.h instead only forward declares the streams using vtkIOStreamFwd.h which does not declare endl. Hence endl is not available in the wrapper files. Fixed that by getting rid of the endls. Utkarsh David Gobbi wrote: > No, it shouldn't directly include vtkIOStream.h. It should probably > include vtkSystemIncludes.h, but I'm going to look closely at the code > to be sure. > > Leila Baghdadi wrote: > >> Hello David, >> >> yes that seems to do the trick! I am still building of course, I will >> e-mail the list if I see any problems. >> >> One thing though, I discovered Common/vtkIOStream.h which also has the >> using declaration for a few functions, was this header meant to be used >> on the vtkArrayIteratorTemplate.txx file or am I mixing up things. >> >> Thanks >> >> On Tue, 2006-24-01 at 15:54 -0500, David Gobbi wrote: >> >> >>> Try adding the following line at the top of the file: >>> >>> using std::endl; >>> >>> If that works, we can make the change in CVS. >>> >>> >>> >>> Leila Baghdadi wrote: >>> >>> >>> >>>> Hi everyone, >>>> >>>> I just got a copy of vtk from cvs and am trying to compile it with >>>> gcc4.0.2. I think my compiler is probably confused with some header >>>> files but am not sure how to solve this, >>>> >>>> any suggestions >>>> >>>> Thanks >>>> >>>> Building CXX object >>>> Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o >>>> /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx: In member >>>> function ‘void vtkArrayIteratorTemplate<T>::PrintSelf(std::ostream&, >>>> vtkIndent)’: >>>> /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:129: error: >>>> ‘endl’ was not declared in this scope >>>> /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:134: error: >>>> ‘endl’ was not declared in this scope >>>> make[2]: *** >>>> [Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o] Error 1 >>>> make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2 >>>> make: *** [all] Error 2 >>>> >>>> >>>> _______________________________________________ >>>> This is the private VTK discussion list. Please keep messages >>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>>> Follow this link to subscribe/unsubscribe: >>>> http://www.vtk.org/mailman/listinfo/vtkusers >>>> >>>> >>>> >>>> >> >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> >> > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |
In reply to this post by Leila Baghdadi
It is fixed now, thanks to Utkarsh. Just download the latest CVS.
Andrew -----Original Message----- From: Leila Baghdadi [mailto:[hidden email]] Sent: Wednesday, 25 January 2006 07:46 To: [hidden email] Subject: [vtkusers] gcc4.0.2 Hi everyone, I just got a copy of vtk from cvs and am trying to compile it with gcc4.0.2. I think my compiler is probably confused with some header files but am not sure how to solve this, any suggestions Thanks Building CXX object Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx: In member function 'void vtkArrayIteratorTemplate<T>::PrintSelf(std::ostream&, vtkIndent)': /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:129: error: 'endl' was not declared in this scope /home/baghdadi/VTK/Common/vtkArrayIteratorTemplate.txx:134: error: 'endl' was not declared in this scope make[2]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/vtkCharArrayPython.o] Error 1 make[1]: *** [Common/CMakeFiles/vtkCommonPythonD.dir/all] Error 2 make: *** [all] Error 2 _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers |
Free forum by Nabble | Edit this page |