VTK 9.2 Can't Compile PolyLine Example

I’m trying to build a project that sends a PolyData message over IGTLink. However, when I copied over the C++ example for PolyLine, I get an error on the following line:
polyLine->GetPointIds()->SetNumberOfIds(2)
The error states that: “pointer to incomplete class type ‘vtkIdList’ is not allowed.” I then tried building the entire example without using IGTLink, just to see if the error persisted. It did. I tried to see if I was missing a header that needed to be included but got nowhere. I had cloned the VTK repo just yesterday. Does anyone know what the issue is and how to fix it? I managed to get the code to compile when using VTK 9.0.0

Do you mean “vtkIdList” (not vtkIDList) ?

Yes that is a typo. I do apologize for that. I’ve now edited the first post to remove confusion.

I just downloaded the tarbell and it all builds Ok.

Why did you change this to 2? It is 5 in the example.

If this doesn’t work, I would suggest deleting the VTK build folder and then recompiling VTK.