[vtkusers] VS Linker error

Stas Truhan stas.truhan at gmail.com
Thu Mar 29 16:58:57 EDT 2012


Hi, friends!
I am compelled to mail you, because I have no idea how to fix my problem. I
hope, that it won`t be a problem for you.

*The deal is* that I`m using VTK C# wrapper Activiz.NET. So, medical
system, e.g computed tomography, sends images in DICOM. But
vtkDICOMImageReader can`t read this files. Well, I`d found
vtkGDCMImageReader in GDCM library.

Now I have to build this library and want to get C# dll(assembly
with vtkGDCMImageReader)
First, I build VTK. Then build GDCM like this: in cmake I set GDCM_USE_VTK,
GDCM_USE_ACTIVIZ, GDCM_WRAP_CSHARP, set SWIG props, set ACTIVIZ props, set
VTK_DIR. Finally, configure and generate. Ok.

*The problem is *when I build GDCM sln in Visual Studio 2010, I have some
link errors. Means, that some dlls wasn`t find, like this:

Error 12 error LNK2019: unresolved external symbol "__declspec(dllimport)
public: __thiscall vtkOStrStreamWrapper::vtkOStrStreamWrapper(void)"
(__imp_??0vtkOStrStreamWrapper@@QAE at XZ) referenced in function "public:
virtual class vtkMatrix4x4 * __thiscall
vtkGDCMImageReader::GetDirectionCosines(void)"
(?GetDirectionCosines at vtkGDCMImageReader@@UAEPAVvtkMatrix4x4@@XZ)
D:\VTK\gdcm-2.0.18
GeneratedBinaries2\Utilities\VTK\vtkgdcmCSHARP_wrap.obj

It seems to be that some headers wasn`t included in sln.

*What I`ve done wrong? Or how to do it in right way?*
*
*
*Anyway, thanks a lot. Have a nice day =)*
-- 
Best regards,
Stanislau Trukhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120329/23c2e5f1/attachment.htm>


More information about the vtkusers mailing list