[vtkusers] Can someone with vtk 5.2.1 please compile this code

David Cole david.cole at kitware.com
Thu May 14 15:37:19 EDT 2009


Please provide us with your CMakeLists.txt file for compiling this code.

What OS are you using?
What compiler?
What version of CMake?
Did you build VTK 5.2.1 yourself or did someone else build it for you?


On Thu, May 14, 2009 at 3:18 PM, 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090514/e4022a72/attachment.htm>


More information about the vtkusers mailing list