[vtkusers] not able to compile this simple program

frency v frencyvarghese at yahoo.com
Tue May 12 16:59:40 EDT 2009


Hello everyone,
I wrote this simple code but it is not getting compiled.
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)'

Can someone compile this code in computer and let me know what is going wrong?

Rgds
Frency



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090512/fdf991e6/attachment.htm>


More information about the vtkusers mailing list