[ITK-users] C# wrapper ITk -unresolved external symbol issues

Dženan Zukić dzenanz at gmail.com
Tue Oct 4 10:15:27 EDT 2016


Hi Swetha,

are you using CMake to configure you wrapper "application", or are you
manually listing all the libraries? Manual enumeration is very error-prone
(some parts of GDCM seem to be missing). If so, try configuring one example
application using CMake to see which libraries get linked to it. Here is a
part of list on my computer which contains "gdcm", copy pasted from Visual
Studio project properties->linker->input->additional dependencies:
C:\Dev\ITK-2015\lib\Debug\itkgdcmDICT-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmMSFF-4.11.lib
C:\Dev\ITK-2015\lib\Debug\ITKIOGDCM-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmIOD-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmDSED-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmCommon-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmjpeg8-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmjpeg12-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmjpeg16-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmopenjpeg-4.11.lib
C:\Dev\ITK-2015\lib\Debug\itkgdcmcharls-4.11.lib

Are you trying to link a C# library into a C++ application or the other way
around?

Regards,
Dženan

On Tue, Oct 4, 2016 at 6:37 AM, swetha <swetha.bsharma at gmail.com> wrote:

> Hi,
>
>   I have developed an application using itk and I am trying to integrate it
> with c#.I have written a wrapper ,in the wrapper application I have
> included
> all ITK .libs in the linker input tab.I am still getting unresolved
> external
> errors. These are the errors which I am getting:
>
>
> Error   4       error LNK2019: unresolved external symbol
> __imp__UuidCreate at 4
> referenced in function "protected: static bool __cdecl
> gdcm::UIDGenerator::GenerateUUID(unsigned char *)"
> (?GenerateUUID at UIDGenerator@gdcm@@KA_NPAE at Z)
> \ObliquePlaneWrapper\itkgdcmMSFF-4.9.lib(gdcmUIDGenerator.obj)
> ObliquePlaneWrapper
>
>
> Error   2       error LNK2019: unresolved external symbol _gethostname at 8
> referenced
> in function "public: static bool __cdecl gdcm::System::GetHostName(char *
> const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)
> \ObliquePlaneWrapper\itkgdcmCommon-4.9.lib(gdcmSystem.obj)
> ObliquePlaneWrapper
>
> Error   1       error LNK2019: unresolved external symbol _WSACleanup at 0
> referenced
> in function "public: static bool __cdecl gdcm::System::GetHostName(char *
> const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)
> \ObliquePlaneWrapper\itkgdcmCommon-4.9.lib(gdcmSystem.obj)
> ObliquePlaneWrapper
>
> Error   3       error LNK2019: unresolved external symbol _WSAStartup at 8
> referenced
> in function "public: static bool __cdecl gdcm::System::GetHostName(char *
> const)" (?GetHostName at System@gdcm@@SA_NQAD at Z)
> \ObliquePlaneWrapper\itkgdcmCommon-4.9.lib(gdcmSystem.obj)
> ObliquePlaneWrapper
>
>
> How do i fix these errors?
> -swetha
>
>
>
> --
> View this message in context: http://itk-insight-users.
> 2283740.n2.nabble.com/C-wrapper-ITk-unresolved-external-symbol-issues-
> tp7589328.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20161004/4de25252/attachment.html>


More information about the Insight-users mailing list