beykery / cocosocket

cocosocket是一个为高性能网络通信准备的底层通信框架,满足对于高性能网络通信的需求,适用于基于tcp或kcp的应用开发。
189 stars 77 forks source link

Windows下vs2013编译出错 #5

Open small-carbon opened 7 years ago

small-carbon commented 7 years ago

Error 54 error C2039: 'writerIndex' : is not a member of 'ByteBuf' Error 17 error C1083: Cannot open include file: 'semaphore.h': No such file or directory Error 15 error C1083: Cannot open include file: 'pthread.h': No such file or directory Error 14 error C1083: Cannot open include file: 'sys/socket.h': No such file or directory Warning 51 warning C4800: 'char' : forcing value to bool 'true' or 'false' (performance warning)

small-carbon commented 7 years ago

Error 54 error C2039: 'writerIndex' : is not a member of 'ByteBuf' 这个问题解决了 #include “ByteBuf.h” 改为 #include <ByteBuf.h> 就好了

small-carbon commented 7 years ago

Error 30 error C1083: Cannot open include file: 'ByteBuf.h': No such file or directory 误以为解决了

beykery commented 7 years ago

cocos客户端很久没维护了,不过在2.x版本是没问题的。看来似乎你是ide环境的问题吧。