Closed yuangu closed 6 years ago
我是使用xubuntu16.04交叉编译的这份代码。 其中有这么几个问题: 1、是不是只能编译32位的代码?我编译64位的后,执行会报: Expression: sizeof(struct epoll_fd*) <= sizeof(int)
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
2、windows.h和ws2tcpip.h建议使用小写。因为linux下的mingw32这二个文件是小写的。win下对大小写不敏感。所以应当没有什么问题。
3、socket下的.h文件中的 EWOULDBLOCK和 EINPROGRESS定义用#ifndef #define #endif
4、关于dlfcn.h缺失问题,我不知道win上的mingw32存不存在这个问题。但是ubuntu上是存在的。我是使用 https://github.com/dlfcn-win32/dlfcn-win32 来替代的。
5、platform.h中的 enum { CLOCK_THREAD_CPUTIME_ID, CLOCK_REALTIME, CLOCK_MONOTONIC }; 和 enum { LOCK_EX, LOCK_NB };莫名冲突。后面我发现与pthread_time.h里的定义冲突了,你看一下,要不要使用pthread_time.h来替代一下。
最后,为你这个项目点个赞,让我们能够在win上学习skynet
================================== 另外,为何你要在ubuntu下使用这个版本呢?
mingw32下载真的很慢,但是在ubuntu上只要一个命令就能装上。所以就用,哈哈!!!!!我已经编译好了,现在在用着,挺不错的。
我是使用xubuntu16.04交叉编译的这份代码。 其中有这么几个问题: 1、是不是只能编译32位的代码?我编译64位的后,执行会报: Expression: sizeof(struct epoll_fd*) <= sizeof(int)
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
2、windows.h和ws2tcpip.h建议使用小写。因为linux下的mingw32这二个文件是小写的。win下对大小写不敏感。所以应当没有什么问题。
3、socket下的.h文件中的 EWOULDBLOCK和 EINPROGRESS定义用#ifndef #define #endif
ifndef EWOULDBLOCK
define EWOULDBLOCK WSAEWOULDBLOCK
endif
ifndef EINPROGRESS
define EINPROGRESS WSAEINPROGRESS
endif
4、关于dlfcn.h缺失问题,我不知道win上的mingw32存不存在这个问题。但是ubuntu上是存在的。我是使用 https://github.com/dlfcn-win32/dlfcn-win32 来替代的。
5、platform.h中的 enum { CLOCK_THREAD_CPUTIME_ID, CLOCK_REALTIME, CLOCK_MONOTONIC }; 和 enum { LOCK_EX, LOCK_NB };莫名冲突。后面我发现与pthread_time.h里的定义冲突了,你看一下,要不要使用pthread_time.h来替代一下。
最后,为你这个项目点个赞,让我们能够在win上学习skynet