# Java Wrapping Error Win10 Visual Studio 2019

**URL:** https://discourse.vtk.org/t/java-wrapping-error-win10-visual-studio-2019/1026
**Category:** Support
**Created:** [May 25, 2019, 3:44pm UTC](https://discourse.vtk.org/t/java-wrapping-error-win10-visual-studio-2019/1026 "2019-05-25T15:44:49Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![TheidenHD](https://discourse.vtk.org/user_avatar/discourse.vtk.org/theidenhd/32/475_2.png) [@TheidenHD](https://discourse.vtk.org/u/TheidenHD)
#### Post date: [May 25, 2019, 3:44pm UTC](https://discourse.vtk.org/t/java-wrapping-error-win10-visual-studio-2019/1026/1 "2019-05-25T15:44:49Z")

</div>

When I try to Build the project I get the following Errors:

```
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(469,17): error C2039: 'string': is not a member of 'std'
199>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\map(20): message : see declaration of 'std'
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(469,23): error C2065: 'string': undeclared identifier
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(469,37): error C2923: 'std::map': 'string' is not a valid template type argument for parameter '_Kty'
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(469,37): error C3203: 'less': unspecialized class template can't be used as a template argument for template parameter '_Pr', expected a real type
199>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\map(67,105): error C3203: 'pair': unspecialized class template can't be used as a template argument for template parameter '_Ty', expected a real type
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(469,39): error C2923: 'std::map': 'string' is not a valid template type argument for parameter '_Kty'
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(469,39): error C3203: 'less': unspecialized class template can't be used as a template argument for template parameter '_Pr', expected a real type
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(544,25): error C2039: 'string': is not a member of 'std'
199>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.21.27702\include\map(20): message : see declaration of 'std'
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(544,31): error C2065: 'string': undeclared identifier
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(544,44): error C2923: 'std::map': 'string' is not a valid template type argument for parameter '_Kty'
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(544,44): error C3203: 'less': unspecialized class template can't be used as a template argument for template parameter '_Pr', expected a real type
199>C:\Users\Marko\Downloads\VTK-8.2.0\VTK-8.2.0\Rendering\Core\vtkProperty.h(544,46): error C2923: 'std::map': 'string' is not a valid template type argument for parameter '_Kty'
```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 28, 2019, 1:37pm UTC](https://discourse.vtk.org/t/java-wrapping-error-win10-visual-studio-2019/1026/2 "2019-05-28T13:37:06Z")

</div>

What version of VTK are you trying to build?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 28, 2019, 1:37pm UTC](https://discourse.vtk.org/t/java-wrapping-error-win10-visual-studio-2019/1026/3 "2019-05-28T13:37:59Z")

</div>

Seems to be 8.2 looking at the error lines and the code there. It’s missing `#include <string>` at the top. I’ll get a patch into 8.2.1, but you can add it manually as well in the meantime.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [May 28, 2019, 1:39pm UTC](https://discourse.vtk.org/t/java-wrapping-error-win10-visual-studio-2019/1026/4 "2019-05-28T13:39:21Z")

</div>

[https://gitlab.kitware.com/vtk/vtk/merge\_requests/5593](https://gitlab.kitware.com/vtk/vtk/merge_requests/5593)
