Page 2 of 2

Re: Lua PureLibrary deprecated?

Posted: Sat Sep 18, 2010 4:52 pm
by hallodri
This is the original source code, compiled with VC6.

Re: Lua PureLibrary deprecated?

Posted: Sat Sep 18, 2010 5:02 pm
by Peyman
can you upload VC6 project for lua ? i just can compile lua dll with VC6

Re: Lua PureLibrary deprecated?

Posted: Sat Sep 18, 2010 5:11 pm
by hallodri
This is the complete project, with source.

www.realsource.de/tmp/Lua51.rar

Re: Lua PureLibrary deprecated?

Posted: Sat Sep 18, 2010 6:37 pm
by Peyman
hallodri i just can say thanks many many many times, now i can modify lua and compile it to static library thanks man.

Re: Lua PureLibrary deprecated?

Posted: Fri Feb 03, 2017 10:37 am
by Keya
Louise wrote:Can someone help me?
kinda hard when "i can't compile because of linker errors" is the only info you're sharing! What errors?

Re: Lua PureLibrary deprecated?

Posted: Fri Feb 03, 2017 8:54 pm
by Keya
Louise wrote:
Keya wrote:
Louise wrote:Can someone help me?
kinda hard when "i can't compile because of linker errors" is the only info you're sharing! What errors?
Show different errors.
What errors?

Re: Lua PureLibrary deprecated?

Posted: Fri Feb 03, 2017 9:32 pm
by jack
perhaps this post may help http://www.purebasic.fr/english/viewtop ... 57#p492257
if you want to try compile using the command line then the instructions found on https://lua64bit.wordpress.com
might do the trick
from the command prompt cd to the lua src directory
(edit the path of your vs installation and lua version below)
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
cl /MD /O2 /c /GS- /DLUA_BUILD_AS_DLL *.c
ren lua.obj lua.o
ren luac.obj luac.o
link /DLL /IMPLIB:lua5.3.0.lib /OUT:lua5.3.0.dll *.obj
link /OUT:lua.exe lua.o lua5.3.0.lib
lib /OUT:lua5.3.0-static.lib *.obj
link /OUT:luac.exe luac.o lua5.3.0-static.lib
note that lua version 5.3.0 does not have some of the functions that are in version 5.1.5 so your test code may need changing

edit: just tried it and the static lib of version 5.1.5 works ok compiling as above
also the dll and import lib work ok