Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在具有多线程功能支持的 cygwin-windows 下构建 libevent-2.0.16-stable 但似乎configure没有将环境检测为 WIN32,因此它没有包含evthread_win32.c在构建过程中,尝试调用evthread_use_windows_threads导致符号不成立。 所以我尝试设置 WIN32 标志CFLAGS=WIN32 ./configure,但它也不起作用。那么正确的方法是什么?
configure
evthread_win32.c
evthread_use_windows_threads
CFLAGS=WIN32 ./configure
我有同样的问题。所以我只是配置为使用非cygwin编译器./configure --binpath=[path to directory with the compiler] CC=[path to my mingw gcc.exe]然后就跑了make
./configure --binpath=[path to directory with the compiler] CC=[path to my mingw gcc.exe]
make