libgo
libgo copied to clipboard
windows 10( vs2019)编译后使用出现下面错误
libgo.lib(win_vc_hook.obj):-1: error: LNK2019: 无法解析的外部符号 __imp_ioctlsocket,函数 "int __cdecl co::connect_mode_hook<int (__cdecl*)(unsigned __int64,struct sockaddr const ,int)>(int (__cdecl)(unsigned __int64,struct sockaddr const *,int),char const *,unsigned __int64,struct sockaddr const *,int)" (??$connect_mode_hook@P6AH_KPEBUsockaddr@@H@Z$$V@co@@YAHP6AH_KPEBUsockaddr@@H@ZPEBD01H@Z) 中引用了该符号
已解决,加入下面那个语句就完美运行了。 #pragma comment(lib,"ws2_32.lib")