Seems need to load ws2_32.dll manually
microhardsmith opened this issue · comments
I got a few compile errors on my Windows 10 x64 machine :
wepoll-ba852f.o : error LNK2019: 无法解析的外部符号 __imp_WSAStartup,函数 ws_global_init 中引用了该符号 wepoll-ba852f.o : error LNK2019: 无法解析的外部符号 __imp_WSAIoctl,函数 ws__ioctl_get_bsp_socket 中引用了该符号 hello.exe : fatal error LNK1120: 2 个无法解析的外部命令
then I added this line solved the problem:
#pragma comment (lib, "ws2_32.lib")
I am not familiar with C language through, so is it correct?
Also, I haven't seen WSACleanup() being called in epoll_close(), why is that?