# Unable to include some vtk classes in c++ plugin

**URL:** https://discourse.paraview.org/t/unable-to-include-some-vtk-classes-in-c-plugin/8152
**Category:** Development
**Created:** [October 10, 2021, 8:20pm UTC](https://discourse.paraview.org/t/unable-to-include-some-vtk-classes-in-c-plugin/8152 "2021-10-10T20:20:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![anthomas](https://discourse.paraview.org/user_avatar/discourse.paraview.org/anthomas/32/7342_2.png) [@anthomas](https://discourse.paraview.org/u/anthomas)
#### Post date: [October 10, 2021, 8:20pm UTC](https://discourse.paraview.org/t/unable-to-include-some-vtk-classes-in-c-plugin/8152/1 "2021-10-10T20:20:00Z")

</div>

I am currently unable to include the vtkSTLReader class and vtkNamedColors class in a c++ plugin. I believe my issues are with the cmake files. I included the plugin here: [pvOptUMesh.zip](https://discourse.paraview.org/uploads/short-url/usQ4ISMH1sHTumw14NXsLMAakfZ.zip) (31.2 KB) It is being built from the pvOptUMesh directory against paraview superbuild v5.9.1

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [October 11, 2021, 9:10am UTC](https://discourse.paraview.org/t/unable-to-include-some-vtk-classes-in-c-plugin/8152/2 "2021-10-11T09:10:10Z")

</div>

You are missing target\_link\_libraries in your CMakeLists.txt, see here:  
[https://gitlab.kitware.com/paraview/paraview/-/blob/master/Plugins/OpenVR/Plugin/CMakeLists.txt#L107](https://gitlab.kitware.com/paraview/paraview/-/blob/master/Plugins/OpenVR/Plugin/CMakeLists.txt#L107)
