# MarkupsToModel : build fails with VTK9

**URL:** https://discourse.slicer.org/t/markupstomodel-build-fails-with-vtk9/13839
**Category:** Development
**Created:** [October 3, 2020, 4:30pm UTC](https://discourse.slicer.org/t/markupstomodel-build-fails-with-vtk9/13839 "2020-10-03T16:30:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [October 3, 2020, 4:30pm UTC](https://discourse.slicer.org/t/markupstomodel-build-fails-with-vtk9/13839/1 "2020-10-03T16:30:35Z")

</div>

Slicer builds nicely with VTK9 on Arch Linux with gcc 10.2.

MarkupsToModel fails to build on VTK\_OVERRIDE and VTK\_DELETE\_FUNCTION. If all occurrences of these macros are removed, the build process completes. Can’t know if it’s the right fix.

Thank you for looking into it.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 4, 2020, 3:21pm UTC](https://discourse.slicer.org/t/markupstomodel-build-fails-with-vtk9/13839/2 "2020-10-04T15:21:46Z")

</div>

Could you send a pull request that replaces these macros with their meaning (`override` and `= delete`)? Thank you!

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [October 4, 2020, 5:05pm UTC](https://discourse.slicer.org/t/markupstomodel-build-fails-with-vtk9/13839/3 "2020-10-04T17:05:03Z")

</div>

> [@lassoan](#):
>
> with their meaning

I removed these macros in 3 header files. It was not a replacement by some other non-empty values. In particular, there is no VTK version testing. I can send the pull request as such, and just want to confirm that it’s what you expect.

---

<div class="post-metadata">

### Author: ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)
#### Post date: [October 4, 2020, 5:22pm UTC](https://discourse.slicer.org/t/markupstomodel-build-fails-with-vtk9/13839/4 "2020-10-04T17:22:39Z")

</div>

Just understood better what you mean.

Replace VTK\_OVERRIDE by override, and VTK\_DELETE\_FUNCTION by =delete.

I’ll send the PR.
