[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Compiling pure Lua project into singe file
- From: Mike Crowe <mike@...>
- Date: Sun, 13 Feb 2005 01:50:47 -0500
This is probably very easy, but I can't seem to see how to do it. I
have a complete project of ~12 .lua files that I want to distribute.
Windows platform. Assume destination has lua.exe and luac.exe
I thought the answer was to:
luac -o myfile.luac file1.lua file2.lua file3.lua .... file12.lua
That creates "myfile.luac" that appears to be all the files together.
However, if I copy this file to a new directory, and execute:
I get an error like:
lua: cannot read compat.lua: No such file or directory
[C]: in function `dofile'
all.lua:9: in main chunk
(luac): in main chunk
(compat.lua is one of the files in my project).
What am I missing here?