[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Compiling LuaFileSystem on Windows 10
- From: Gisle Vanem <gvanem@...>
- Date: Tue, 9 Jan 2018 18:13:24 +0100
Russell Haley wrote:
> link -dll -def:lfs.def -out:lfs.dll C:/Program Files (x86)/PUC-Lua/5.3.4/x86/lua53.dll src/lfs.obj
> Microsoft (R) Incremental Linker Version 14.12.25831.0
Should perhaps be some "" around that long lua53.dll file-name.
> C:\Users\russh\Git\luafilesystem>cl /nologo /MD /O2 -c -Fosrc/lfs.obj
> -I"C:\Program Files (x86)\PUC-Lua\5.3.4\include" src\lfs.c
> lfs.c
>
> C:\Users\russh\Git\luafilesystem>link -dll -def:lfs.def -out:lfs.dll
> "C:\Program Files (x86)\PUC-Lua\5.3.4\x86\lua53.lib" src/lfs.obj
That's what I mean.
> Creating library lfs.lib and object lfs.exp
> lfs.obj : error LNK2019: unresolved external symbol _lua_gettop
Since lua53.lib is an import-library for lua53.dll, add
a '-DLUA_BUILD_AS_DLL' to your 'cl' cmd-line.
--
--gv