lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>Would any kind soul who has built Lua-4.0 on Windoze using
>VC++ 6.0 please point me toward the necessary project files?
>
See the following message:
>>>
   Date: Thu, 23 Nov 2000 09:26:51 -0500
   From: Philippe Lhoste <PhiLho@MailAndNews.com>
Subject: Win32 binaries and MSVC6 projects

Hello.

Wanting to play a bit with Lua 4.0, and still waiting for official Windows 
binaries, I decided to make my own. I don't have gcc, I "just" have MSVC6 (or 
5), so I had to make my own makefiles.
I looked the way the 3.2 official Win32 binaries were made, and tried to stay 
as closely as possible to them.
More details about this at the Web page I have setup for this:
http://jove.prohosting.com/~philho/softwares/PhiLhoSoft/Lua/index.html
<<<
Actually, you can find there not only the binaries, but also the project 
files.

Hope this help.

Charlie Goff wrote:
> Two Questions/Problems:
>
> 	1.  Creating the Standard Library (lauxlib.c lbaselib.c
> ldblib.c liolib.c
> lmathlib.c lstrlib.c) as a DLL under MSVC 6 causes a linking
> errors "*.obj :
> error LNK2001: unresolved external symbol _lua_*" where "*" varies.
> Searching all files for "_lua_" returns no results.  I'm assuming that
> because I am making a DLL that the pre-appending "_" is done by MSVC.
> 	Which would mean that the Standard Library depends on the
> Core Library,
> right?  If so, why isn't this stated in \Install?
> 
Taking example on the 3.2 DLLs, I have made my 4.0 LuaLib.dll depending on the 
Lua.dll... Make sense, as we rarely use the former without the later, anyway.
It isn't stated in \Install because it doesn't intent to give dependencies, I 
suppose.

Last note, for Windows users: the following .reg file content can be useful...
You have to change the path of your favorite editor, and of your Lua binaries 
of course. I should include it in my package.

REGEDIT4

[HKEY_CLASSES_ROOT\.lua]
@="luafile"

[HKEY_CLASSES_ROOT\luafile]
@="Lua: program file"
"AlwaysShowExt"=""

[HKEY_CLASSES_ROOT\luafile\DefaultIcon]
@="D:\\Programs\\Languages\\Lua\\Lua.ico"

[HKEY_CLASSES_ROOT\luafile\shell]

[HKEY_CLASSES_ROOT\luafile\shell\edit]
@="Edit with &SciTE"

[HKEY_CLASSES_ROOT\luafile\shell\edit\command]
@="\"D:\\PROGRAM FILES\\Text\\SciTE.exe\" \"%1\""

[HKEY_CLASSES_ROOT\luafile\shell\open\command]
@="\"D:\\Programs\\Languages\\Lua\\bin\\Lua.exe\" \"%1\""

Regards.

¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://jove.prohosting.com/~philho/
http://philho.multimania.com/
_.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._.·´¯`·._