Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad directive in ffi.h #1

arton opened this issue Feb 24, 2013 · 0 comments

bad directive in ffi.h #1

arton opened this issue Feb 24, 2013 · 0 comments


Copy link

@arton arton commented Feb 24, 2013

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.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.