[vtkusers] VTKMATLABMEXADAPTER: vtkDataArray to vtkImageData

Jeff Baumes jeff.baumes at kitware.com
Tue Jan 4 15:13:29 EST 2011


On Tue, Jan 4, 2011 at 3:06 PM, kwayeke <bigvision82 at yahoo.com> wrote:

>
> I am Using visual studio 2010 and I keep getting this error
>
>  Creating library D:\DOCUME~1\IBM\LOCALS~1\TEMP\MEX_X7~1\templib.x and
> object D:\DOCUME~1\IBM\LOCALS~1\TEMP\MEX_X7~1\templib.exp
> vo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: class vtkDataArray * __thiscall
> vtkMatlabMexAdapter::mxArrayTovtkDataArray(struct mxArray_tag const
> *,bool)"
> (__imp_?mxArrayTovtkDataArray at vtkMatlabMexAdapter@@QAEPAVvtkDataArray@
> @PBUmxArray_tag@@_N at Z)
> referenced in function _mexFunction
> vo.obj : error LNK2019: unresolved external symbol "__declspec(dllimport)
> public: static class vtkMatlabMexAdapter * __cdecl
> vtkMatlabMexAdapter::New(void)" (__imp_?New at vtkMatlabMexAdapter@@SAPAV1 at XZ
> )
> referenced in function _mexFunction
> vo.mexw32 : fatal error LNK1120: 2 unresolved externals
>
>  D:\PROGRA~1\MATLAB\R2010B\BIN\MEX.PL: Error: Link of 'vo.mexw32' failed.
>
>
Did you turn on the CMake variable VTK_USE_MATLAB_MEX when compiling VTK? It
looks like your VTK did not build that class.

Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110104/01cbc794/attachment.htm>


More information about the vtkusers mailing list