ffi-1.14.2 compilation fails on Windows with MSVC 2019 compiler

21 views
Skip to first unread message

Jay Mav

unread,
Jan 22, 2021, 5:33:37 PM1/22/21
to ruby-ffi

When using MSVC 2019 compiler, the following #include in ffi-1.14.2\ext\ffi_c\Pointer.h causes error because the directory win32/stdbool.h cannot be located:

#ifndef _MSC_VER
# include <stdbool.h>
#else
# include "win32/stdbool.h"
#endif

stdbool.h is in the include directory, not in the win32 sub-dir:

C:\Program Files (x86)\Microsoft Visual Studio\2019>dir /s stdbool.h

 Directory of C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.27.29110\include

10/12/2020  04:16 PM               356 stdbool.h
               1 File(s)            356 bytes

Can this be corrected?

Lars Kanis

unread,
Jan 22, 2021, 5:42:43 PM1/22/21
to ruby...@googlegroups.com, Jay Mav
Hi,

this is fixed on master and will be in the next bugfix release: https://github.com/ffi/ffi/commit/4516f6a2f608d081366ad0eefc712f1112253402

--
Regards,
Lars

Am 22.01.21 um 23:24 schrieb Jay Mav:
--
You received this message because you are subscribed to the Google Groups "ruby-ffi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ffi+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ruby-ffi/123495f5-a25e-4c8e-b938-8ca9326efe57n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages