Lua PureLibrary deprecated?

Just starting out? Need help? Post your questions and find answers here.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Lua PureLibrary deprecated?

Post by hallodri »

This is the original source code, compiled with VC6.
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Lua PureLibrary deprecated?

Post by Peyman »

can you upload VC6 project for lua ? i just can compile lua dll with VC6
Sorry for my bad english.
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Re: Lua PureLibrary deprecated?

Post by hallodri »

This is the complete project, with source.

www.realsource.de/tmp/Lua51.rar
Peyman
Enthusiast
Enthusiast
Posts: 203
Joined: Mon Dec 24, 2007 4:15 pm
Location: Iran

Re: Lua PureLibrary deprecated?

Post 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.
Sorry for my bad english.
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: Lua PureLibrary deprecated?

Post 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?
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: Lua PureLibrary deprecated?

Post 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?
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: Lua PureLibrary deprecated?

Post 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
Post Reply