jinq0123 / LuaPbIntf

Binding Protobuf 3 to Lua 5.3
MIT License
134 stars 41 forks source link

声明的时候报错是什么情况? #14

Closed dqzg12300 closed 4 years ago

dqzg12300 commented 6 years ago

package.cpath = "../luaclib/?.so;" local pb=require("luapbintf") 报下面的错误。是不是我还少包含了什么? terminate called after throwing an instance of 'std::system_error' what(): Unknown error -1 Aborted (core dumped)

jinq0123 commented 6 years ago

没碰到过。需要找到哪里抛异常。

jinq0123 commented 6 years ago

可能需要编译时加上 -lpthread http://bbs.chinaunix.net/forum.php?mod=viewthread&tid=4252692&orderby=dateline&orderby=dateline

jinq0123 commented 6 years ago

Modify premake/premake5.lua:

    filter { "system:linux" }
-        links { "protobuf" }
+       links { "protobuf", "pthread" }
dqzg12300 commented 6 years ago

可以了。就是这个问题。谢谢。