# vtk 9.6.2 msvc2022 C++20 using issue

**URL:** https://discourse.vtk.org/t/vtk-9-6-2-msvc2022-c-20-using-issue/16466
**Category:** Support
**Created:** [June 18, 2026, 7:37pm UTC](https://discourse.vtk.org/t/vtk-9-6-2-msvc2022-c-20-using-issue/16466 "2026-06-18T19:37:08Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![jamesobutler](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jamesobutler/32/7579_2.png) [@jamesobutler](https://discourse.vtk.org/u/jamesobutler)
#### Post date: [June 19, 2026, 11:08am UTC](https://discourse.vtk.org/t/vtk-9-6-2-msvc2022-c-20-using-issue/16466/3 "2026-06-19T11:08:53Z")

</div>

> [@vtk 9.6.2 build error](https://discourse.vtk.org/t/vtk-9-6-2-build-error/16461/4):
>
> Build with -DCMAKE\_GENERATOR\_TOOLSET=v142 is fine. Thank You!

@APlenkin Based on your other recent comment you mentioned you were using the v142 toolset which is MSVC from Visual Studio 2019. Are you still using that or are you now using the v143 toolset for MSVC from Visual Studio 2022?

---

_[View the full topic](https://discourse.vtk.org/t/vtk-9-6-2-msvc2022-c-20-using-issue/16466)._
