# Compilation error for StreamlinesWithlineWidget

**URL:** <https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828>\
**Category:** Development\
**Created:** [June 29, 2022, 1:36pm UTC](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828 "2022-06-29T13:36:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yvan](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/y/3ab097/32.png) [@yvan](https://discourse.vtk.org/u/yvan)\
**Post date:** [June 29, 2022, 1:36pm UTC](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828/1 "2022-06-29T13:36:40Z")

</div>

when building StreamlinesWithlineWidget sample code with VisualStudio 2017 (Windows10, x64), I get lots of C2440 compilation errors.  
Ex: cannot convert from vtkNew to vtkPolyData\* :  
vtkNew seeds;  
GenerateStreamlines-\>polyData = seeds;

---

<div class="post-metadata">

**Author:** ![amaclean](https://discourse.vtk.org/user_avatar/discourse.vtk.org/amaclean/32/224_2.png) [@amaclean](https://discourse.vtk.org/u/amaclean)\
**Post date:** [July 2, 2022, 3:45am UTC](https://discourse.vtk.org/t/compilation-error-for-streamlineswithlinewidget/8828/2 "2022-07-02T03:45:15Z")

</div>

If you are referring to [StreamlinesWithLineWidget](https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/StreamlinesWithLineWidget) it should build ok.

Try downloading the tarball and building it.
