acl-dev / acl

C/C++ server and network library, including coroutine,redis client,http/https/websocket,mqtt, mysql/postgresql/sqlite client with C/C++ for Linux, Android, iOS, MacOS, Windows, etc..
https://acl-dev.cn
GNU Lesser General Public License v3.0
2.83k stars 937 forks source link

mingw支持问题 #309

Closed zxppandacn closed 1 year ago

zxppandacn commented 1 year ago

acl_define.h中包含如下代码

ifdef MINGW

undef _WIN32

undef _WIN64

else

include "acl_define_win32.h"

endif

而_mingw.h文件中包含如下代码

if !defined(_WIN32) && !defined(CYGWIN)

error Only Win32 target is supported!

endif

尝试修改acl_define.h文件会遇到找不到文件等其他问题。

zhengshuxin commented 1 year ago

本来Acl是支持使用 Mingw 和 Cygwin 编译的,但这个环境毕竟是一个模拟环境,一方面执行效率比较低,另一方面它们总在变化,所以后来Acl不再打算支持这两个环境,建议Windows使用者使用VC2019或相关VC版本编译使用Acl。

zxppandacn commented 1 year ago

谢谢您的回答。知道不支持mingw就不用费时间尝试了。