Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

無法運行 #1

Open
947133297 opened this issue Oct 23, 2016 · 3 comments
Open

無法運行 #1

947133297 opened this issue Oct 23, 2016 · 3 comments

Comments

@947133297
Copy link

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

@elisaday
Copy link
Owner

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

@Bepartofyou
Copy link

我也遇到了,不知道是什么问题,
..\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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants