macosx和linux的gcc编译参数不同
"multiple Lua VMs detected"
gcc -Wall -shared -fPIC -o mylib.so -llua mylib.c
改为
gcc -fPIC -dynamiclib -Wl,-undefined,dynamic_lookup -o foo.so foo.c
macosx和linux的gcc编译参数不同
"multiple Lua VMs detected"
gcc -Wall -shared -fPIC -o mylib.so -llua mylib.c
改为
gcc -fPIC -dynamiclib -Wl,-undefined,dynamic_lookup -o foo.so foo.c
本文标题:mac makefile "multiple Lua VMs d
本文链接:https://www.haomeiwen.com/subject/soyvrxtx.html
网友评论