When compiling software that includes vtkFloatArray.h
with Qtcreator and gcc 9.3 as compiler on Ubuntu 20.04 I receive the following error:
/usr/local/include/vtk-8.2/vtkFloatArray.h:38:3: error: definition provided for explicit instantiation
38 | vtkTypeMacro(vtkFloatArray, vtkDataArray)
| ^~~~~~~~~~~~
The code highlighted is:
class VTKCOMMONCORE_EXPORT vtkFloatArray : public vtkDataArray
{
public:
vtkTypeMacro(vtkFloatArray, vtkDataArray)
I also tried to compile this code on Windows with VisualStudio 2019 I didn’t receive this error.
Does somebody kindly have any idea what this error means?