Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a problem when using a LDC2 #110

Open
ZHANITEST opened this issue Jul 28, 2018 · 4 comments
Open

a problem when using a LDC2 #110

ZHANITEST opened this issue Jul 28, 2018 · 4 comments

Comments

@ZHANITEST
Copy link

howdy ๐Ÿ˜„
i think a LuaD is not actived. but i just open it.

when i build with LDC2, i got a problem about linker.
here:

> ldc2 --version
LDC - the LLVM D compiler (1.10.0):
  based on DMD v2.080.1 and LLVM 6.0.0
  built with LDC - the LLVM D compiler (1.10.0)
  Default target: x86_64-pc-windows-msvc
  Host CPU: znver1
> dub run
Fetching luad ~master (getting selected version)...
Performing "debug" build using C:\D\ldc2\bin\ldc2.exe for x86_64.
luad ~master: building configuration "library"...
miniapp ~master: building configuration "application"...
luad.lib(luad.state.obj) : error LNK2019: (blaha blaha blaha native sentense)
luad.lib(luad.state.obj) : error LNK2019: (blaha blaha blaha native sentense)
luad.lib(luad.c.lua.obj) : error LNK2001: (blaha blaha blaha native sentense)
luad.lib(luad.c.tostring.obj) : error LNK2001: (blaha blaha blaha native sentense)
luad.lib(luad.state.obj) : error LNK2019: (blaha blaha blaha native sentense)
...
.dub\build\application-debug-windows-x86_64-ldc_2080-A018B6E6B6632669C02A6EFF51E3E42A\miniapp.exe : fatal error LNK1120: (blaha blaha blaha native sentense)
Error: C:\Program Files (x86)\Microsoft Visual Studio\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe failed with status: 1120
C:\D\ldc2\bin\ldc2.exe failed with exit code 1.

but dmd's working pretty(DMD32 D Compiler v2.081.1). can't solve them?

thanks

@rikkimax
Copy link

Are we to assume that you replaced parts of the linker errors with (blaha blaha blaha native sentense)? Because that content could be rather helpful.

@ZHANITEST
Copy link
Author

ZHANITEST commented Jul 28, 2018

@rikkimax hello
i just annoying about translate to english.
are you tested with LDC2? it does not difficult. dub init test && cd test and follow LuaD example.

ANYWAY.
sure i'm. here is original log.

> ldc2 --version
LDC - the LLVM D compiler (1.10.0):
  based on DMD v2.080.1 and LLVM 6.0.0
  built with LDC - the LLVM D compiler (1.10.0)
  Default target: x86_64-pc-windows-msvc
  Host CPU: znver1
(... skip. i dosen't need it)
> dub run
WARNING: A deprecated branch based version specification is used for the dependency luad. Please use numbered versions instead. Also note that you can still use the dub.selections.json file to override a certain dependency to use a branch instead.
Performing "debug" build using C:\D\ldc2\bin\ldc2.exe for x86_64.
luad ~master: target for configuration "library" is up to date.
miniapp ~master: building configuration "application"...
luad.lib(luad.state.obj) : error LNK2019: luaL_newstate ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__ctorMFZCQBfQBdQBa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_atpanic ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__ctorMFZCQBfQBdQBa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_tolstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__ctorMFZ5panicUPSQBn1c3lua9lua_StateZi ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2001: lua_tolstring ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2001: lua_tolstring ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_pushlightuserdata ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__ctorMFPSQBf1c3lua9lua_StateZCQCaQByQBv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_setfield ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__ctorMFPSQBf1c3lua9lua_StateZCQCaQByQBv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2001: lua_setfield ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_close ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__dtorMFZv ํ•จ์ˆ˜)์—์„œ ํ™• ์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_pushnil ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState6__dtorMFZv ํ•จ์ˆ˜)์—์„œ  ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_getfield ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState11fromPointerFNePSQBm1c3lua9lua_StateZCQChQCfQCc ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2001: lua_getfield ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_getfield ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_touserdata ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState11fromPointerFNePSQBm1c3lua9lua_StateZCQChQCfQCc ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.conversions.functions.obj) : error LNK2001: lua_touserdata ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: luaL_openlibs ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState8openLibsMFNeZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: luaL_loadstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState10loadStringMFNexAaZSQBp9lfunction11LuaFunction ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: luaL_loadstring ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_error ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState10loadStringMFNexAaZSQBp9lfunction11LuaFunction ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_error ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: luaL_loadfile ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState8loadFileMFNexAaZSQBm9lfunction11LuaFunction ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: luaL_loadfile ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_gettop ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState8doStringMFNexAaEQBlQBj15LuaErrorHandlerZASQCl4base9LuaObject ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.stack.obj) : error LNK2001: lua_gettop ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_pcall ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState__T7doChunkX15luaL_loadstringZQBbMFxAaEQChQCf15LuaErrorHandlerZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_pcall ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.state.obj) : error LNK2019: lua_remove ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5state8LuaState__T7doChunkX15luaL_loadstringZQBbMFxAaEQChQCf15LuaErrorHandlerZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.conversions.functions.obj) : error LNK2019: lua_getstack ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad11conversions9functions9argsErrorFPSQBp1c3lua9lua_StateilZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.conversions.functions.obj) : error LNK2019: lua_getinfo ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad11conversions9functions9argsErrorFPSQBp1c3lua9lua_StateilZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.conversions.functions.obj) : error LNK2019: luaL_error ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad11conversions9functions9argsErrorFPSQBp1c3lua9lua_StateilZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2001: luaL_error ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.stack.obj) : error LNK2001: luaL_error ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2019: lua_settop ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_pop ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2019: lua_createtable ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_newtable ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2019: lua_pushcclosure ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_pushcfunction ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชป ํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2001: lua_type ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2001: lua_type ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2001: lua_type ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.stack.obj) : error LNK2001: lua_type ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_type ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2019: lua_pushlstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_pushliteral ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.stack.obj) : error LNK2001: lua_pushlstring ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2019: lua_pushvalue ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_getregistry ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2001: lua_pushvalue ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2001: lua_pushvalue ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lua.obj) : error LNK2019: lua_gc ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_getgccount ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.table.obj) : error LNK2019: lua_setmetatable ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5table8LuaTable12setMetaTableMFNeKSQBoQBmQBjZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.table.obj) : error LNK2019: lua_getmetatable ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5table8LuaTable12getMetaTableMFNeZSQBoQBmQBj ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.table.obj) : error LNK2019: lua_objlen ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5table8LuaTable6lengthMFNeZm ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_objlen ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.table.obj) : error LNK2019: lua_gettable ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5table8LuaTable__T3getTSQBd9lfunction11LuaFunctionTAyaTQeZQBoMFNeQoQqZQBv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2019: luaL_ref ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad4base9LuaObject6__ctorMFNcPSQBh1c3lua9lua_StateiZSQCdQCbQBz ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: luaL_ref ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2019: lua_rawgeti ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad4base9LuaObject4pushMFNbZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_rawgeti ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2019: lua_typename ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad4base9LuaObject9checkTypeFPSQBh1c3lua9lua_StateiiPxaZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.stack.obj) : error LNK2001: lua_typename ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: lua_typename ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.base.obj) : error LNK2019: luaL_unref ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad4base9LuaObject6__dtorMFNbNeZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2001: luaL_unref ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.lfunction.obj) : error LNK2019: lua_setfenv ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad9lfunction11LuaFunction14setEnvironmentMFKSQBw5table8LuaTableZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.lfunction.obj) : error LNK2019: lua_dump ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad9lfunction11LuaFunction4dumpMFMDFxAvZbZb ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.stack.obj) : error LNK2019: luaL_typerror ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad5stack20argumentTypeMismatchFPSQBk1c3lua9lua_StateiiZv ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: luaL_argerror ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: luaL_argcheck ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: luaL_checklstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: luaL_checkstring ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: luaL_optlstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: luaL_optstring ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชป ํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: luaL_checkinteger ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: luaL_checkint ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: luaL_optinteger ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: luaL_optint ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: luaL_prepbuffer ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: luaL_addchar ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.lauxlib.obj) : error LNK2019: lua_pushstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: lua_ref ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2001: lua_pushstring ์™ธ๋ถ€ ๊ธฐํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2019: luaL_callmeta ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad1c8tostring14luaL_tolstringFPSQBjQBh3lua9lua_StateiPmZPxa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2019: lua_toboolean ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad1c8tostring14luaL_tolstringFPSQBjQBh3lua9lua_StateiPmZPxa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2019: lua_topointer ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad1c8tostring14luaL_tolstringFPSQBjQBh3lua9lua_StateiPmZPxa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
luad.lib(luad.c.tostring.obj) : error LNK2019: lua_pushfstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad1c8tostring14luaL_tolstringFPSQBjQBh3lua9lua_StateiPmZPxa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค.
.dub\build\application-debug-windows-x86_64-ldc_2080-A018B6E6B6632669C02A6EFF51E3E42A\miniapp.exe : fatal error LNK1120: 48๊ฐœ์˜ ํ™•์ธํ•  ์ˆ˜ ์—†๋Š” ์™ธ๋ถ€ ์ฐธ์กฐ์ž…๋‹ˆ๋‹ค.
Error: C:\Program Files (x86)\Microsoft Visual Studio\Community\VC\Tools\MSVC\14.14.26428\bin\HostX64\x64\link.exe failed with status: 1120
C:\D\ldc2\bin\ldc2.exe failed with exit code 1.

for example, luad.lib(luad.c.tostring.obj) : error LNK2019: lua_pushfstring ์™ธ๋ถ€ ๊ธฐํ˜ธ(์ฐธ์กฐ ์œ„์น˜: _D4luad1c8tostring14luaL_tolstringFPSQBjQBh3lua9lua_StateiPmZPxa ํ•จ์ˆ˜)์—์„œ ํ™•์ธํ•˜์ง€ ๋ชปํ–ˆ์Šต๋‹ˆ๋‹ค. is mean, coudn't find a foreign symbol that lua_pushfstring(ref point: a function that _D4luad1c8tostring14luaL_tolstringFPSQBjQBh3lua9lua_StateiPmZPxa).

regards,

@rikkimax
Copy link

You haven't linked in Lua.
There is a 32bit build for Windows in repo, but for 64bit you're on your own (although fairly easy to get a copy).

@ZHANITEST
Copy link
Author

Ok. Soooooo, how can i linking a Lua?

I got a lib file in here(picked a lua-5.1.4_Win32_vc12_lib.zip), and copy to dub\packages\luad-master\luad\extlib.

Sure, not working. Is it a problem that mismatched version of linker?(lib: msvc12 / linker: msvc14)

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants