1.程序Bug解决:LNK2019: 无法解析的外部符号 WSAStartup,该符号在函数 "pu......

1.LNK2019: 无法解析的外部符号 gethostbyname,该符号在函数 "public: int __cdecl itksys::SystemInformationImplementation::GetFullyQualifiedDomainName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &)" ([email protected]@[email protected]@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 中被引用

LNK2019: 无法解析的外部符号 gethostname,该符号在函数 "public: char const * __cdecl itksys::SystemInformationImplementation::GetHostname(void)" ([email protected]@[email protected]@QEAAPEBDXZ) 中被引用

LNK2019: 无法解析的外部符号 WSAStartup,该符号在函数 "public: char const * __cdecl itksys::SystemInformationImplementation::GetHostname(void)" ([email protected]@[email protected]@QEAAPEBDXZ) 中被引用

LNK2019: 无法解析的外部符号 WSACleanup,该符号在函数 "public: char const * __cdecl itksys::SystemInformationImplementation::GetHostname(void)" ([email protected]@[email protected]@QEAAPEBDXZ) 中被引用

解决方法:

右键点击:项目->属性->链接器->输入->附加依赖项->加上WS2_32.lib

2. LNK2019    无法解析的外部符号 GetProcessMemoryInfo,该符号在函数 "public: __int64 __cdecl itksys::SystemInformationImplementation::GetProcMemoryUsed(void)" ([email protected]@[email protected]@QEAA_JXZ) 中被引用    ITK_GPU_test    C:\OURfiles\ITK_Files\ITK_projects\ITK_GPU_test\ITK_GPU_test\itksys-5.0.lib(SystemInformation.obj)    1    

解决方法:

右键点击:项目->属性->链接器->输入->附加依赖项->加上Psapi.lib

1.程序Bug解决:LNK2019: 无法解析的外部符号 WSAStartup,该符号在函数 "pu......

1.程序Bug解决:LNK2019: 无法解析的外部符号 WSAStartup,该符号在函数 "pu......