# undefined reference to vtkAOSDataArrayTemplate

**URL:** https://discourse.vtk.org/t/undefined-reference-to-vtkaosdataarraytemplate/9643
**Category:** Support
**Created:** [October 19, 2022, 12:13am UTC](https://discourse.vtk.org/t/undefined-reference-to-vtkaosdataarraytemplate/9643 "2022-10-19T00:13:41Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![BlueKnight7](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/838e76/32.png) [@BlueKnight7](https://discourse.vtk.org/u/BlueKnight7)
#### Post date: [October 30, 2022, 7:39pm UTC](https://discourse.vtk.org/t/undefined-reference-to-vtkaosdataarraytemplate/9643/4 "2022-10-30T19:39:24Z")

</div>

Paulo,

I apologize for taking so long to get back on this.

I didn’t use your approach because I was using the pre-built Vtk module for MSYS2 and installed with pacman.

What I discovered in the mean time is that my error occurs if I set -g or -O0 on the compiler flags. If I set -O1, -O2, or -O3, I compile my code just fine and don’t see the problem.

To me, this does appear as a compiler bug (or what ever one wants to call it). At least I have something that works.

Thanks for all who responded.

BK

---

_[View the full topic](https://discourse.vtk.org/t/undefined-reference-to-vtkaosdataarraytemplate/9643)._
