This will work fine. However, if we remove .dylib from the dynamic-ffi-lib path, an error will occur, saying that it could not find the shared library file.
The reason, apparently, is that generate-static-ffi will generate ffi-lib with (list ) as a version when dynamic-ffi-lib doesn't have any version strings. When a file extension is given in dynamic-ffi-lib, this is fine. However, when a file extension is not given, it is crucial that the version should be either left unspecified or #f.
Consider:
This will work fine. However, if we remove
.dylib
from the dynamic-ffi-lib path, an error will occur, saying that it could not find the shared library file.The reason, apparently, is that
generate-static-ffi
will generateffi-lib
with(list )
as a version whendynamic-ffi-lib
doesn't have any version strings. When a file extension is given indynamic-ffi-lib
, this is fine. However, when a file extension is not given, it is crucial that the version should be either left unspecified or#f
.