1
我剛開始使用Luabind,並試圖運行指定的Hello World測試http://www.rasterbar.com/products/luabind/docs.html#calling-lua-functions。但是,這在嘗試編譯時會提供未定義的符號錯誤。Luabind未定義的符號/ Luabind :: scope :: scope
Undefined symbols for architecture x86_64:
"luabind::scope::scope(std::__1::auto_ptr<luabind::detail::registration>)", referenced from:
luabind::scope luabind::def<void (*)(), luabind::detail::null_type>(char const*, void (*)(), luabind::detail::null_type const&) in TestClass.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
其他功能,如luabind ::開放和luabind :: call_function正常工作。
我在osx上通過自制軟件安裝了luabind和lua 5.1。