[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: precompiled code problem in 5.1.4
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 23 Oct 2010 16:44:16 -0200
> We updated to Lua 5.1.4 and our Windows app fails trying to load a
> pre-compiled lua library. Specifically, luaL_loadfile() returns 3 and the
> error message is "bad header in precompiled chunk". This library was created
> using luac.exe dated March 19 2004 (114,688 bytes).
Given the date of your luac.exe, it's definitely not Lua 5.1. So the message
is saying (but not too clearly) that you have the wrong version. Precompiled
Lua scripts can only be loaded in the same version of Lua with which they were
created. Did you lose the original source files?