【发布时间】:2019-03-30 03:17:36
【问题描述】:
我是 Lua 脚本的新手。尝试在我的 Lua 脚本中使用 SHA256 哈希机制。
Lua 5.3.5 版本是否具有 SHA256 作为内置库,如字符串、数学等。
或者我们需要使用luarocks install sha2 安装吗?
我在我的 MAC 中尝试了luarocks install sha2,但出现下面列出的错误,
sha2lib.c:133:27: error: array has incomplete element type 'struct luaL_reg'
static struct luaL_reg reg[] = {
错误:构建错误:编译对象 sha2lib.o 失败
【问题讨论】:
标签: lua lua-table luarocks sha2