satoren / kaguya

C++ binding to Lua
Boost Software License 1.0
345 stars 70 forks source link

error: type mismatch in diferent dynamic lib #87

Closed KellyGodLv closed 6 years ago

KellyGodLv commented 6 years ago

i have two lib a.so & b.so

a.so => state["readImage"]=kaguya::function([](const char* name)->cv::Mat{ return cv::imread(name);}); b.so => state["detect"]=kaguya::function([](cv::Mat src){ dosomething...});

lua=> local src=readImage("test.jpg") ------success call detect(src) -----error type mismatch args is cv::Mat

if two functions in same lib will be called success if two functions in diff lib will failed

KellyGodLv commented 6 years ago

add KAGUYA_SUPPORT_MULTIPLE_SHARED_LIBRARY