libffi-msvc icon indicating copy to clipboard operation
libffi-msvc copied to clipboard

bad directive in ffi.h

Open arton opened this issue 12 years ago • 0 comments

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.

arton avatar Feb 24 '13 13:02 arton