elisaday / kcpuv

使用KCP和libuv的简单网络模块。
GNU General Public License v2.0
63 stars 25 forks source link

無法運行 #1

Open 947133297 opened 8 years ago

947133297 commented 8 years ago

cmake之後,用VS2015打開,重新生成,產生一大堆無法解析的外部命令

elisaday commented 7 years ago

检查一下运行时是不是匹配

Bepartofyou commented 6 years ago

我也遇到了,不知道是什么问题, ..\src\Debug\kcpuv.lib libuv.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib 看着lib也没有什么问题。。。。就是报错

1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_loop_new referenced in function "public: int thiscall Network::init(void)" (?init@Network@@QAEHXZ) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_loop_delete referenced in function "public: void thiscall Network::shutdown(void)" (?shutdown@Network@@QAEXXZ) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_run referenced in function "public: void thiscall Network::shutdown(void)" (?shutdown@Network@@QAEXXZ) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_close referenced in function "public: void __thiscall Network::shutdown(void)" (?shutdown@Network@@QAEXXZ) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_udp_init referenced in function "public: int thiscall Network::udp_listen(char const ,int)" (?udp_listen@Network@@QAEHPBDH@Z) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_udp_bind referenced in function "public: int __thiscall Network::udp_listen(char const ,int)" (?udp_listen@Network@@QAEHPBDH@Z) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_udp_recv_start referenced in function "public: int thiscall Network::udp_listen(char const ,int)" (?udp_listen@Network@@QAEHPBDH@Z) 1>kcpuv.lib(network.obj) : error LNK2019: unresolved external symbol _uv_ip4_addr referenced in function "public: int __thiscall Network::udp_listen(char const ,int)" (?udp_listen@Network@@QAEHPBDH@Z) 1>kcpuv.lib(conn.obj) : error LNK2019: unresolved external symbol _uv_udp_send referenced in function "public: int thiscall Conn::send_udp(char const *,unsigned int)" (?send_udp@Conn@@QAEHPBDI@Z)

Bepartofyou commented 6 years ago

@947133297 找到问题了,win版本的libuv库自己重新编译一个吧,楼主这个可能是64的