libffi-msvc
libffi-msvc copied to clipboard
bad directive in ffi.h
Hi, thanks for vcproject and sln.
This is great help for VC people as me who don't want to install MSYS.
But there is one issue - ffi.h has bad definitions. I believe you'd like to create libffi.dll, but at this time it only emits static library. So the definition line 178 of ffi.h
define FFI_EXTERN extern __declspec(dllimport)
causes linker error. declspec(dllimport) creates symbol with __imp, but static library has no such symbols. Unfortunately testCaller and testdll both have FFI_BUILDING definition in their projects so they can build well.
Regards.