[Paraview] Can ParaView Modules Have Static Variables?

Kent Eschenberg eschenbe at psc.edu
Fri Jun 16 13:28:39 EDT 2006


Can a ParaView module have static variables?

I'm creating a new filter and initialize the static varaibles in the header file, after the class definition, with lines like

int vtkMyNewClass::myVariable = 0;

All works well until linking pvbatch when it says that these variables have multiple definitions in libvtkPVFilters.a and in libvtkPVFiltersCS.a.

Thanks!

Kent
Pittsburgh Supercomputing Center



More information about the ParaView mailing list