[prev in list] [next in list] [prev in thread] [next in thread] 

List:       vtkusers
Subject:    Re: [vtkusers] Borland Turbo (BDS2006) doesn't compile VTK 5.2,
From:       "David Cole" <david.cole () kitware ! com>
Date:       2008-08-29 18:34:17
Message-ID: f435c2c50808291134x19686021mef030d0c96fcc1de () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You're welcome. Since it worked, I will commit it to CVS, and make sure it
gets merged into VTK-5-2 for the (hopefully weeks or months in the future)
5.2.1 patch release.

David


On Fri, Aug 29, 2008 at 2:25 PM, D_E <D_E@ukr.net> wrote:

> Dear David,
> 
> Thank you very much for your advise - it really helped!
> I put the line #include <vtkstd/iterator> in vtkConvertSelection.cxx  just
> before #include <vtkstd/algorithm> and everything compiled.
> 
> Thank you once again for so quick answer!
> 
> D_E.
> 
> > Looks like "inserter" is declared in the iterator header file, which is
> not
> > explicitly included in that source file. Must be accidentally/indirectly
> > included on non-Borland systems.
> 
> > Can you add this at the top of vtkConvertSelection.cxx...
> 
> > #include <vtkstd/iterator>
> > ...and tell us if that fixes the problem?
> 
> 
> > Thanks,
> > David
> 
> 
> > On Fri, Aug 29, 2008 at 10:26 AM, D_E <D_E@ukr.net> wrote:
> 
> > > I'm trying to compile VTK 5.2 with Borland Turbo (BDS 2006) but I've got
> > > error message below. I'm using Cmake-2.6.1.
> > > With the same procedure VTK 5.0.4 compiles without problems.
> > > Any suggestion how to fix the problem?
> > > Thank you!
> 
> 
> > > [ 48%] Building CXX object
> > > Graphics/CMakeFiles/vtkGraphics.dir/vtkConvertSelection.obj
> > > Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
> > > C:\vtk\Graphics\vtkConvertSelection.cxx:
> 
> > > Error E2316 C:\vtk\Graphics\vtkConvertSelection.cxx 124: 'inserter' is
> not
> > > a mem ber of 'std' in function
> > > vtkConvertSelection::SelectTableFromTable(vtkTable *,vtkTable
> > > *,vtkIdTypeArray *)
> 
> > > Error E2285 C:\vtk\Graphics\vtkConvertSelection.cxx 124: Could not find
> a
> > > match for
> > > 
> 'std::set_intersection<_InIt1,_InIt2,_OutIt>(std::_Tree<std::_Tset_traits<int,std::less<int>,std::allocator<int>,0>
> 
> > > > > > iterator,std::_Tree<std::_Tset_traits
> > > <int,std::less<int>,std::allocator<int>,0> >::iterator,int *,int
> > > *,undefined)' in function
> vtkConvertSelection::SelectTableFromTable(vtkTable
> > > *,vtkTable *,vtkId
> > > TypeArray *)
> 
> > > *** 2 errors in Compile ***
> 
> 
> 


[Attachment #5 (text/html)]

<div dir="ltr">You&#39;re welcome. Since it worked, I will commit it to CVS, and make \
sure it gets merged into VTK-5-2 for the (hopefully weeks or months in the future) \
5.2.1 patch release.<div><br></div><div><br></div><div> David</div><div><br><br><div \
class="gmail_quote">On Fri, Aug 29, 2008 at 2:25 PM, D_E <span dir="ltr">&lt;<a \
href="mailto:D_E@ukr.net">D_E@ukr.net</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex;"> Dear David,<br>
<br>
Thank you very much for your advise - it really helped!<br>
I put the line #include &lt;vtkstd/iterator&gt; in vtkConvertSelection.cxx &nbsp;just \
before #include &lt;vtkstd/algorithm&gt; and everything compiled.<br> <br>
Thank you once again for so quick answer!<br>
<font color="#888888"><br>
D_E.<br>
</font><div><div></div><div class="Wj3C7c"><br>
&gt; Looks like &quot;inserter&quot; is declared in the iterator header file, which \
is not<br> &gt; explicitly included in that source file. Must be \
accidentally/indirectly<br> &gt; included on non-Borland systems.<br>
<br>
&gt; Can you add this at the top of vtkConvertSelection.cxx...<br>
<br>
&gt; #include &lt;vtkstd/iterator&gt;<br>
&gt; ...and tell us if that fixes the problem?<br>
<br>
<br>
&gt; Thanks,<br>
&gt; David<br>
<br>
<br>
&gt; On Fri, Aug 29, 2008 at 10:26 AM, D_E &lt;<a \
href="mailto:D_E@ukr.net">D_E@ukr.net</a>&gt; wrote:<br> <br>
&gt;&gt; I&#39;m trying to compile VTK 5.2 with Borland Turbo (BDS 2006) but I&#39;ve \
got<br> &gt;&gt; error message below. I&#39;m using Cmake-2.6.1.<br>
&gt;&gt; With the same procedure VTK 5.0.4 compiles without problems.<br>
&gt;&gt; Any suggestion how to fix the problem?<br>
&gt;&gt; Thank you!<br>
<br>
<br>
&gt;&gt; [ 48%] Building CXX object<br>
&gt;&gt; Graphics/CMakeFiles/vtkGraphics.dir/vtkConvertSelection.obj<br>
&gt;&gt; Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland<br>
&gt;&gt; C:\vtk\Graphics\vtkConvertSelection.cxx:<br>
<br>
&gt;&gt; Error E2316 C:\vtk\Graphics\vtkConvertSelection.cxx 124: &#39;inserter&#39; \
is not<br> &gt;&gt; a mem ber of &#39;std&#39; in function<br>
&gt;&gt; vtkConvertSelection::SelectTableFromTable(vtkTable *,vtkTable<br>
&gt;&gt; *,vtkIdTypeArray *)<br>
<br>
&gt;&gt; Error E2285 C:\vtk\Graphics\vtkConvertSelection.cxx 124: Could not find \
a<br> &gt;&gt; match for<br>
&gt;&gt; &#39;std::set_intersection&lt;_InIt1,_InIt2,_OutIt&gt;(std::_Tree&lt;std::_Tset_traits&lt;int,std::less&lt;int&gt;,std::allocator&lt;int&gt;,0&gt;<br>
 &gt;&gt; &gt;::iterator,std::_Tree&lt;std::_Tset_traits<br>
&gt;&gt; &lt;int,std::less&lt;int&gt;,std::allocator&lt;int&gt;,0&gt; \
&gt;::iterator,int *,int<br> &gt;&gt; *,undefined)&#39; in function \
vtkConvertSelection::SelectTableFromTable(vtkTable<br> &gt;&gt; *,vtkTable \
*,vtkId<br> &gt;&gt; TypeArray *)<br>
<br>
&gt;&gt; *** 2 errors in Compile ***<br>
<br>
<br>
</div></div></blockquote></div><br></div></div>



_______________________________________________
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic