[vtkusers] Can someone please correct this code
David Doria
daviddoria at gmail.com
Wed May 13 11:36:46 EDT 2009
On Wed, May 13, 2009 at 11:32 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 in computer 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)'
>
It compiles fine for me. Make sure you link to vtkHybrid.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090513/9a30d0ca/attachment.htm>
More information about the vtkusers
mailing list