Reputation: 341
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@4 referenced in function "protected: static bool __cdecl gdcm::UIDGenerator::GenerateUUID(unsigned char *)" (?GenerateUUID@UIDGenerator@gdcm@@KA_NPAE@Z) \ObliquePlaneWrapper\itkgdcmMSFF-4.9.lib(gdcmUIDGenerator.obj) ObliquePlaneWrapper
Error 2 error LNK2019: unresolved external symbol _gethostname@8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName@System@gdcm@@SA_NQAD@Z) \ObliquePlaneWrapper\itkgdcmCommon-4.9.lib(gdcmSystem.obj) ObliquePlaneWrapper
Error 1 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName@System@gdcm@@SA_NQAD@Z) \ObliquePlaneWrapper\itkgdcmCommon-4.9.lib(gdcmSystem.obj) ObliquePlaneWrapper
Error 3 error LNK2019: unresolved external symbol _WSAStartup@8 referenced in function "public: static bool __cdecl gdcm::System::GetHostName(char * const)" (?GetHostName@System@gdcm@@SA_NQAD@Z) \ObliquePlaneWrapper\itkgdcmCommon-4.9.lib(gdcmSystem.obj) ObliquePlaneWrapper
How do i fix these errors? -swetha
Upvotes: 0
Views: 273
Reputation: 341
I used CMAKE instead of adding the .lib files manually.It solved my problem
Upvotes: 1