[Paraview] Can ParaView Modules Have Static Variables?

Andy Cedilnik andy.cedilnik at kitware.com
Fri Jun 16 14:30:15 EDT 2006


Hi Kent,

Make sure this line is in your .cxx file and not in your .h file.

       Andy

Kent Eschenberg wrote:
> 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
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>   


-- 
Andy Cedilnik
Kitware Inc.



More information about the ParaView mailing list