• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling [100%] Linking CXX executable tfs / Errors at the end

Zodia

Member
Joined
Feb 21, 2020
Messages
220
Reaction score
20
I've tried everything to fix my SRC but unfortunately without success. Could someone help me with this?
Nostalrius based tfs 1.2

Lua:
[ 98%] Building CXX object CMakeFiles/tfs.dir/src/wildcardtree.cpp.o
[100%] Linking CXX executable tfs
CMakeFiles/tfs.dir/src/combat.cpp.o: In function `ValueCallback::getMinMaxValues(Player*, CombatDamage&, bool) const':
combat.cpp:(.text+0x2c99): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/combat.cpp.o: In function `TargetCallback::onTargetCombat(Creature*, Creature*) const':
combat.cpp:(.text+0x30b1): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::load()':
configmanager.cpp:(.text+0xae): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::getGlobalString[abi:cxx11](lua_State*, char const*, char const*)':
configmanager.cpp:(.text+0xf33): undefined reference to `lua_getglobal'
configmanager.cpp:(.text+0xf92): undefined reference to `lua_rawlen'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::getGlobalNumber(lua_State*, char const*, int)':
configmanager.cpp:(.text+0x10a0): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/configmanager.cpp.o: In function `ConfigManager::getGlobalBoolean(lua_State*, char const*, bool)':
configmanager.cpp:(.text+0x112a): undefined reference to `lua_getglobal'
configmanager.cpp:(.text+0x117d): undefined reference to `lua_rawlen'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::protectedCall(lua_State*, int, int)':
luascript.cpp:(.text+0x1210): undefined reference to `lua_pcallk'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::getEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x1489): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x153c): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::getMetaEvent(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x16cb): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::getStackTrace(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x1af4): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x1bf0): undefined reference to `lua_callk'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerFunctions()':
luascript.cpp:(.text+0x45fb): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x4634): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x466d): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x46a6): undefined reference to `lua_setglobal'
luascript.cpp:(.text+0x46df): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o:luascript.cpp:(.text+0x4718): more undefined references to `lua_setglobal' follow
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerClass(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x443cf): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerTable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
luascript.cpp:(.text+0x447d2): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x44810): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerGlobalMethod(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int (*)(lua_State*))':
luascript.cpp:(.text+0x4494e): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':
luascript.cpp:(.text+0x4498d): undefined reference to `lua_getglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerGlobalVariable(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, double)':
luascript.cpp:(.text+0x44a28): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::registerGlobalBoolean(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)':
luascript.cpp:(.text+0x44a79): undefined reference to `lua_setglobal'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::luaIsInArray(lua_State*)':
luascript.cpp:(.text+0x48a46): undefined reference to `lua_compare'
CMakeFiles/tfs.dir/src/luascript.cpp.o: In function `LuaScriptInterface::luaAddEvent(lua_State*)':
luascript.cpp:(.text+0x491a5): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x491d8): undefined reference to `lua_getglobal'
luascript.cpp:(.text+0x49248): undefined reference to `lua_callk'
collect2: error: ld returned 1 exit status
CMakeFiles/tfs.dir/build.make:1951: recipe for target 'tfs' failed
make[2]: *** [tfs] Error 1
CMakeFiles/Makefile2:99: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
root@hardera:/home/prod/prod/build#


build.make

Lua:
1951 line:  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/prod/prod/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_73) "Linking CXX executable tfs"
1952 line:    $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/tfs.dir/link.txt --verbose=$(VERBOSE)
 
Last edited:
Back
Top