# VTK 9.2.2 / OCC 7.6.0 fails at to\_int\_type() function of MSVC when mapping PolyDataSource?

**URL:** https://discourse.vtk.org/t/vtk-9-2-2-occ-7-6-0-fails-at-to-int-type-function-of-msvc-when-mapping-polydatasource/10073
**Category:** Support
**Tags:** code
**Created:** [December 5, 2022, 12:22pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-occ-7-6-0-fails-at-to-int-type-function-of-msvc-when-mapping-polydatasource/10073 "2022-12-05T12:22:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bunny](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@bunny](https://discourse.vtk.org/u/bunny)
#### Post date: [December 5, 2022, 12:22pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-occ-7-6-0-fails-at-to-int-type-function-of-msvc-when-mapping-polydatasource/10073/1 "2022-12-05T12:22:15Z")

</div>

It works fine with VTK released libs but fails with debug libs.

 ![H~ZE%%73LHDY7IL4~FL9U](https://discourse.vtk.org/uploads/default/original/2X/c/caa279995737b1c94fc63f0728849246954d449a.jpeg)  
 ![image](https://discourse.vtk.org/uploads/default/original/2X/b/b0006899c131f4428239a4eecfdc4b7de50cc37b.jpeg)

the libs of VTK that I uses

 ![image](https://discourse.vtk.org/uploads/default/original/2X/7/73be3c621569b8f377fd8df98e3297e7725dea81.png)

---

<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: [December 7, 2022, 1:55pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-occ-7-6-0-fails-at-to-int-type-function-of-msvc-when-mapping-polydatasource/10073/2 "2022-12-07T13:55:26Z")

</div>

This looks more like OCC code to me, not VTK itself.

---

<div class="post-metadata">

### Author: ![toddy](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/t/edb3f5/32.png) [@toddy](https://discourse.vtk.org/u/toddy)
#### Post date: [December 7, 2022, 11:21pm UTC](https://discourse.vtk.org/t/vtk-9-2-2-occ-7-6-0-fails-at-to-int-type-function-of-msvc-when-mapping-polydatasource/10073/3 "2022-12-07T23:21:30Z")

</div>

@bunny Are you also building debug libs for OCC?

---

<div class="post-metadata">

### Author: ![bunny](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/3d9bf3/32.png) [@bunny](https://discourse.vtk.org/u/bunny)
#### Post date: [December 8, 2022, 7:18am UTC](https://discourse.vtk.org/t/vtk-9-2-2-occ-7-6-0-fails-at-to-int-type-function-of-msvc-when-mapping-polydatasource/10073/4 "2022-12-08T07:18:12Z")

</div>

yeah, that is the problem… 😅
