dimanche 19 juillet 2015

Luabind Undefined Symbols/ Luabind::scope::scope

I have just started working with Luabind, and have attempted to run the Hello World test specified at http://ift.tt/1nYhPgd. However, this provides an undefined symbol error when attempted to compile.

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)

Other functions such as luabind::open and luabind::call_function work correctly.

I installed both luabind and lua 5.1 through homebrew on osx.

Aucun commentaire:

Enregistrer un commentaire