[vtk-developers] Modularised VTK: MPI issue.
Marcus D. Hanwell
marcus.hanwell at kitware.com
Wed Apr 11 22:18:31 EDT 2012
On Wed, Apr 11, 2012 at 9:29 PM, Andrew Maclean
<andrew.amaclean at gmail.com> wrote:
> But not for me!
> There are two errors in Windows but not Linux or Mac OSX 10.7.3
> It seems that VS2010 doesn't like line 90 in TestSystemInformation.cxx:
> std::string fname = build_dir + *f;
> Error 5 error C2784: 'std::reverse_iterator<_RanIt> std::operator
> +(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template
> argument for 'const std::reverse_iterator<_RanIt> &' from 'const char *'
> C:\Users\amaclean\Code\Kitware\src\VTK\Common\Core\Testing\Cxx\TestSystemInformation.cxx
> 90
> I can't see anything wrong with line 90!
> Intellisense says: IntelliSense: no operator "+" matches these operands
> I even replaced the variable files with a vector of strings and the for loop
> with a std::vector< std::string > >:: const_iterator.
>
> What does work is this:
> //--------------------------------
> for(const char** f = files; *f; ++f)
> {
> std::string fname = argv[1];
> fname += "/";
> fname += *f;
> vtkSystemInformationPrintFile(fname.c_str(), cout);
> }
> //--------------------------------
> If this is acceptable you can safely delete lines 73 and 74.
> Don't ask me why this works! If anybody knows please tell me.
I will defer to Brad on this one, he added the test back in today.
>
> The second issue is a linking errors in:
> VTK\Rendering\HybridOpenGL relating to:
> vtkSurfaceLICDefaultPainter
> vtkSurfaceLICPainter
> vtkSurfaceLICPainterPython.obj
> vtkSurfaceLICDefaultPainterTcl.obj
> vtkSurfaceLICPainter
>
This is the result of a couple of export macros I neglected to change
in a move, topic,
http://review.source.kitware.com/#/t/387
should fix this. I will get it merged tomorrow morning but if you have
a chance to verify it solves your issue that would be great.
Thanks,
Marcus
More information about the vtk-developers
mailing list