You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried building this (immensely helpful and educational) package on Windows 10 with RStudio via devtools::load_all(".") and building with the g++ that comes with Rtools\mingw_64 fails. It doesn't realize it's on Windows, and wants to #include <sys/mman.h>.
Both the 32-bit and 64-bit versions of MinGW have a __MINGW32__ macro, so changing the check on line 37 of annoylib.h worked for me:
I tried building this (immensely helpful and educational) package on Windows 10 with RStudio via
devtools::load_all(".")
and building with theg++
that comes withRtools\mingw_64
fails. It doesn't realize it's on Windows, and wants to#include <sys/mman.h>
.Both the 32-bit and 64-bit versions of MinGW have a
__MINGW32__
macro, so changing the check on line 37 ofannoylib.h
worked for me:The text was updated successfully, but these errors were encountered: