[vtkusers] Can someone please correct this code
Jon Waite
JonW at pathsurg.com
Wed May 13 13:12:34 EDT 2009
Frency,
I compiled the code fine under vtk 5.0.0 and 5.4.0.
Jon
On Wed, May 13, 2009 at 11:41 AM, frency v <frencyvarghese at yahoo.com> wrote:
> Hello everyone,
> I wrote this simple code but it is not getting compiled.
> i am getting the following error message. pls help.
>
> Error message:- undefined reference to 'vtkDataArrayTemplate<short>::Set
> numbervalues (long long)'
>
> Can someone compile this code and let me know what is going wrong?
>
> Rgds
> Frency
>
> here is the code
>
> #include "vtkShortArray.h"
> int main()
> { short arrIn[10];
> const int indmax=10;
> vtkShortArray *dataArr = vtkShortArray::New();
> dataArr->SetNumberOfValues(indmax);
> }
>
> Error message:- undefined reference to 'vtkDataArrayTemplate<short>::Set
> numbervalues (long long)'
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
More information about the vtkusers
mailing list