遇到的问题
如图所示,在编译httplib时,出现如下报错。
undefined reference to `__imp_getnameinfo’ undefined reference to `__imp_getaddrinfo’ undefined reference to `__imp_WSASocketW’ undefined reference to `__imp_freeaddrinfo’ undefined reference to `__imp_freeaddrinfo’
出现的报错有规律,都是未定义的引用,
解决办法
添加这两个链接器。