Linking error on LuaInterpreter

Issue #85 closed
Dhi Aurrahman created an issue
Linking CXX executable vera++
CMakeFiles/vera.dir/plugins/lua/LuaInterpreter.cpp.o: In function `luabind::detail::type_to_string<std::vector<Vera::Structures::Token, std::allocator<Vera::Structures::Token> > >::get(lua_State*)':
LuaInterpreter.cpp:(.text._ZN7luabind6detail14type_to_stringISt6vectorIN4Vera10Structures5TokenESaIS5_EEE3getEP9lua_State[_ZN7luabind6detail14type_to_stringISt6vectorIN4Vera10Structures5TokenESaIS5_EEE3getEP9lua_State]+0x31): undefined reference to `luabind::detail::get_class_name[abi:cxx11](lua_State*, luabind::type_id const&)'
CMakeFiles/vera.dir/plugins/lua/LuaInterpreter.cpp.o: In function `luabind::detail::type_to_string<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::get(lua_State*)':
LuaInterpreter.cpp:(.text._ZN7luabind6detail14type_to_stringISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEE3getEP9lua_State[_ZN7luabind6detail14type_to_stringISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEE3getEP9lua_State]+0x31): undefined reference to `luabind::detail::get_class_name[abi:cxx11](lua_State*, luabind::type_id const&)'
CMakeFiles/vera.dir/plugins/lua/LuaInterpreter.cpp.o: In function `luabind::detail::type_to_string<Vera::Structures::Token>::get(lua_State*)':
LuaInterpreter.cpp:(.text._ZN7luabind6detail14type_to_stringIN4Vera10Structures5TokenEE3getEP9lua_State[_ZN7luabind6detail14type_to_stringIN4Vera10Structures5TokenEE3getEP9lua_State]+0x31): undefined reference to `luabind::detail::get_class_name[abi:cxx11](lua_State*, luabind::type_id const&)'
collect2: error: ld returned 1 exit status
src/CMakeFiles/vera.dir/build.make:571: recipe for target 'src/vera++' failed
make[2]: *** [src/vera++] Error 1
CMakeFiles/Makefile2:1049: recipe for target 'src/CMakeFiles/vera.dir/all' failed
make[1]: *** [src/CMakeFiles/vera.dir/all] Error 2
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2

Comments (4)

  1. Kenneth Kalatucka

    I am having the same problem.

    I first tried to build with the -DVERA_USE_SYSTEM_LUA=OFF

    when I do that I got

     src='https://github.com/LuaDist/lua/archive/5.2.3.tar.gz'
     dst='/home/kkalatucka/Downloads/temp3/vera++-1.3.0/build/src/lua-prefix/src/5.2.3.tar.gz'
     timeout='none'
    

    CMake Error at lua-stamp/download-lua.cmake:9 (file): file DOWNLOAD HASH mismatch

    I then down loaded the lua-5,2,3.tar.zip and luabind-vera-1.3.0.zip Built and installed them to a custom location then did a

    cmake -DLUA_INCLUDE_DIR=$LUA_HOME/include -DLUABIND_LIBRARY=$LUABND_HOME/lib -DLUABIND_INCLUDE_DIR=$LUABND_HOME/include ../

    the make then results in

    undefined reference to `luabind::detail::get_class_name(lua_State*, luabind::type_id const&)' ID

  2. Vincent Hobeïka

    Very old issue. Feel free to reopen if you still have the problem. Please provide luabind version and GNU/linux distribution.

  3. Log in to comment