Open code-fodder opened 8 years ago
The reason is the __declspec(dllimport)
decoration on Windows. See here. It can be fixed by defining YAML_DECLARE_STATIC
in the rockspec (it's only necessary on Windows, so you could use per-platform-overrides, but since it isn't harmful on other platforms I wouldn't bother):
-- ...
},
incdirs = {'src'},
defines = {'YAML_DECLARE_STATIC'}, -- <==
},
-- ...
I have tried two different ways to build this and both failed :(
lua install yaml-1.1.2-1.src.rock
luarocks make
Both produce the same error - here is a short snippet of the log:
Note: that before installing this I succesfully installed its dependencies:
So I am not sure what is wrong...