[Insight-users] ask for information

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Apr 20 16:59:26 EDT 2009


On Mon, Apr 20, 2009 at 8:34 PM, kongdewen1 kong <kongdewen1 at gmail.com> wrote:
> Hi,guys. When I am running the program,  some mistakes come:
>
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _SnmpUtilVarBindFree at 4 referenced in function "int __cdecl
> gdcm::GetMacAddrSys(unsigned char *)" (?GetMacAddrSys at gdcm@@YAHPAE at Z)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _SnmpUtilOidNCmp at 12 referenced in function "int __cdecl
> gdcm::GetMacAddrSys(unsigned char *)" (?GetMacAddrSys at gdcm@@YAHPAE at Z)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _SnmpUtilOidCpy at 8 referenced in function "int __cdecl
> gdcm::GetMacAddrSys(unsigned char *)" (?GetMacAddrSys at gdcm@@YAHPAE at Z)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _WSAStartup at 8 referenced in function "int __cdecl
> gdcm::GetMacAddrSys(unsigned char *)" (?GetMacAddrSys at gdcm@@YAHPAE at Z)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> __imp__UuidCreate at 4 referenced in function "private: static bool __cdecl
> gdcm::Util::GenerateUUID(unsigned char *)"
> (?GenerateUUID at Util@gdcm@@CA_NPAE at Z)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _gethostbyname at 4 referenced in function "private: static class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > __cdecl gdcm::Util::GetIPAddress(void)"
> (?GetIPAddress at Util@gdcm@@CA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _gethostname at 8 referenced in function "private: static class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > __cdecl gdcm::Util::GetIPAddress(void)"
> (?GetIPAddress at Util@gdcm@@CA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)
> itkgdcm.lib(gdcmUtil.obj) : error LNK2019: unresolved external symbol
> _WSACleanup at 0 referenced in function "private: static class
> std::basic_string<char,struct std::char_traits<char>,class
> std::allocator<char> > __cdecl gdcm::Util::GetIPAddress(void)"
> (?GetIPAddress at Util@gdcm@@CA?AV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@XZ)
>
> could anyone explain me which lib i am missing or which other error i am
> doing.

You need to send the complete output otherwise I simply cannot
diagnose anything.

* Send me the -truncated- output of 'make VERBOSE=1'
* What compiler are you using ?
* what platform ?

On all Win32 platform you should see on the link line, what is
described in the following cmakelists section:

...
IF(WIN32)
  IF(NOT BORLAND)
    TARGET_LINK_LIBRARIES(itkgdcm wsock32 snmpapi rpcrt4)
  ENDIF(NOT BORLAND)
ENDIF(WIN32)
...

I do not see why, this would be failing. Try again from scratch in an
empty directory.

HTH
-- 
Mathieu


More information about the Insight-users mailing list