在windows下用cygwin构建libevent?

发布于 2024-12-18 14:29:45 字数 290 浏览 6 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱要勇敢去追 2024-12-25 14:29:45

我也有同样的问题。所以我只是配置为使用非 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 ran make

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文