在windows下用cygwin构建libevent?
我在 cygwin-windows 下构建了 libevent-2.0.16-stable,支持多线程功能,但似乎 configure
没有检测到环境为 WIN32,因此它不包含 evthread_win32.c
作为构建过程的一部分,尝试调用 evthread_use_windows_threads
会导致找不到符号。
所以我尝试像 CFLAGS=WIN32 ./configure
设置 WIN32 标志,但它也不起作用。那么正确的方法是什么呢?
I build libevent-2.0.16-stable under cygwin-windows with multi-thread feature support but it's seem that configure
didn't detect environment as WIN32, so it did not include evthread_win32.c
as a part of build process, a try call to evthread_use_windows_threads
cause symbol not found.
So i try to set WIN32 flag like CFLAGS=WIN32 ./configure
and it did not work too. So what's is the properly way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也有同样的问题。所以我只是配置为使用非 cygwin 编译器
./configure --binpath=[编译器目录的路径] CC=[我的 mingw gcc.exe 的路径]
然后运行 制作
I had the same problem. So i just configured to use non-cygwin compiller
./configure --binpath=[path to directory with the compiler] CC=[path to my mingw gcc.exe]
and then just ranmake