[vtkusers] vtkusers Digest, Vol 61, Issue 13

frency v frencyvarghese at yahoo.com
Wed May 13 12:39:09 EDT 2009


Thanks David,
I have vtkHybrid link and i am still not able to complile.
Frency 

Message: 14
Date: Wed, 13 May 2009 11:36:46 -0400
From: David Doria <daviddoria at gmail.com>
Subject: Re: [vtkusers] Can someone please correct this code
Cc: vtkusers at vtk.org
Message-ID:
    <c19fcadc0905130836o591db528s81a1868b1340db23 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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-0001.htm>

------------------------------

_______________________________________________
vtkusers mailing list
vtkusers at vtk.org
http://www.vtk.org/mailman/listinfo/vtkusers


End of vtkusers Digest, Vol 61, Issue 13
****************************************



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


More information about the vtkusers mailing list