Re: The dreaded newbie questions...

  • From: mchalkley@xxxxxxxx
  • To: Szabà Antal <luajit@xxxxxxxxxxxxx>
  • Date: Wed, 17 Oct 2012 12:46:53 -0400


Wednesday, October 17, 2012, 12:29:52 PM, you wrote:

> 2012/10/17  <mchalkley@xxxxxxxx>:
>> The other question that raises (in my own mind, at least) is how is it
>> that all the libraries I've already got (sigar, lfs, bit, socket, lua
>> 5.1.5 itself) all just happen to be compatible with one another?  I
>> didn't compile any of them myself...

> Now that I read this, and read my mail again, I became unsure about
> the dll compatibility. I know that object files aren't compatible, but
> thinking it over, dlls should be, and then I don't know what's wrong.

> Have you tried what I said, to try running the 32bit compiled luajit
> with some test lua code that doesn't use anything external, just to
> see if the executable itself works?

Yes, I have - a simple script that reads a file, uses os.date,
string.gmatch, etc. and writes a file back to disk works fine.

If I insert the line:

require "lfs"

, I get this error:

luajit: error loading module 'lfs' from file '.\lfs.dll':
        %1 is not a valid Win32 application.

stack traceback:
        [C]: at 0x07feef3258c0
        [C]: in function 'require'
        showschedstate.lua:1: in main chunk
        [C]: at 0x013f2a24e0


Other related posts: