我正在按照此处给出的说明进行操作(此页面指示 VS2015,但从已发布的 jemalloc 获得的文件夹包含 2015 和 2017 的 sln),但运行失败:
bash -c "CC=cl.exe ./autogen.sh"
来自“VS x86 Native Tools Command Prompt”(此处为 VS2017),日志如下:
> checking pthread.h usability... no checking pthread.h presence... yes
> configure: WARNING: pthread.h: present but cannot be compiled
> configure: WARNING: pthread.h: check for missing prerequisite
> headers? configure: WARNING: pthread.h: see the Autoconf documentation
> configure: WARNING: pthread.h: section "Present But Cannot Be
> Compiled" configure: WARNING: pthread.h: proceeding with the
> compiler's result checking for pthread.h... no configure: error:
> pthread.h is missing Error 0 in ./configure
我想我错过了一些先决条件或其他东西。我尝试从ftp://sourceware.org/pub/pthreads-win32/dll-latest手动安装 pthread (按照一些 google 链接)。但这是好的链接吗?
我也在这里看到了一些类似这个的答案,但它对我不起作用,可能是因为引用了旧版本的 jemalloc。
如何在 Windows 上正确安装 jemalloc?
编辑:尝试使用 Cygwin 而不是 bash,现在的错误是:
> configure: error: Unsupported intmax_t size: 0