# VTKPVVTKEXTENSIONSDEFAULT\_EXPORT replacement?

**URL:** https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515
**Category:** Development
**Created:** [June 4, 2020, 5:44pm UTC](https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515 "2020-06-04T17:44:03Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Marsh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chris_marsh/32/85_2.png) [@Chris\_Marsh](https://discourse.paraview.org/u/Chris_Marsh)
#### Post date: [June 4, 2020, 5:44pm UTC](https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515/1 "2020-06-04T17:44:03Z")

</div>

I have a plugin derived from `vtkTableAlgorithm` that I would like to update for Paraview 5.7+. I’ve been following the migration guide.

However when building I don’t have this file `vtkPVVTKExtensionsDefaultModule.h` which I need for `VTKPVVTKEXTENSIONSDEFAULT_EXPORT`.

What has `VTKPVVTKEXTENSIONSDEFAULT_EXPORT` been replaced by in 5.7+?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 4, 2020, 5:53pm UTC](https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515/2 "2020-06-04T17:53:59Z")

</div>

Your plugin code shouldn’t be explicitly using that file or the macro. It is meant for code in that module itself. Can you elaborate where the error is coming from?

---

<div class="post-metadata">

### Author: ![Chris\_Marsh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chris_marsh/32/85_2.png) [@Chris\_Marsh](https://discourse.paraview.org/u/Chris_Marsh)
#### Post date: [June 4, 2020, 7:07pm UTC](https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515/3 "2020-06-04T19:07:17Z")

</div>

Oh interesting. This is a filter I wrote many years back, cobbled together from existing code and help from the old paraview-dev mailing list. I’m not particularly comfortable with it, and once it was working, I haven’t touched it since.

The line in question is this one

> <https://github.com/Chrismarsh/vtk-paraview-datetimefilter/blob/master/vtkDateTimeAnnotation.h#L31>

That is, the error is in my code.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [June 16, 2020, 12:30am UTC](https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515/4 "2020-06-16T00:30:43Z")

</div>

You should be able to remove it entirely or replace it with `VTK_EXPORT`.

---

<div class="post-metadata">

### Author: ![Chris\_Marsh](https://discourse.paraview.org/user_avatar/discourse.paraview.org/chris_marsh/32/85_2.png) [@Chris\_Marsh](https://discourse.paraview.org/u/Chris_Marsh)
#### Post date: [June 23, 2020, 9:40pm UTC](https://discourse.paraview.org/t/vtkpvvtkextensionsdefault-export-replacement/4515/5 "2020-06-23T21:40:34Z")

</div>

Ok I will try that. Is there a specific header I should include?
