compiling lua

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Sep 15 18:27:21 PDT 2008


On Mon, Sep 15, 2008 at 7:24 PM, Hoenir <mrmocool at gmx.de> wrote:
> Jarrett Billingsley schrieb:
>>
>> On Mon, Sep 15, 2008 at 6:48 PM, Hoenir <mrmocool at gmx.de> wrote:
>>>
>>> Jarrett Billingsley schrieb:
>>>>
>>>> On Mon, Sep 15, 2008 at 1:03 PM, Hoenir <mrmocool at gmx.de> wrote:
>>>>>
>>>>> is anybody able to compile lua 5.1.4 with dmc? I want to include it
>>>>> statically in a D program.
>>>>>
>>>> What's the issue you're having?  I think I compiled 5.1.3 with DMC and
>>>> didn't need any modifications.  It's written strictly in ANSI C for a
>>>> reason ;)
>>>
>>> Well, at least there's a #define controlling that ANSI thing.
>>> I had to add a cast in liolib.c to make it compile without errors.
>>> But the dmd linker complains about undefined symbols __pclose and __popen
>>>
>>
>> Ah yes, I remember that now.  popen is not supported on Windows, at
>> least not by many compilers other than MS's.  I think I ended up just
>> commenting out those functions, sadly.
>
> well, indeed there are functions popen and pclose defined in dmc's stdio.h
> (remember MS's versions have an underscore _pclose) so I removed the
> underscore in the luaconf header, but it didn't work. I also tried defining
> _WIN32, but this only brought me a lot of new errors.
> Then I tried using a precompiled library from the luabinaries project. First
> I downloaded the VC9 version, converted it using objconv to OMF, but there
> were a lot of symbol undefined and "Previous Definition Different" errors.
> After that I tried the Borland lib (since it uses OMF, doesn't it), but it
> resulted in the same error messages :(
>

I'm sorry, but I've reached the end of my utility in this matter :\


More information about the Digitalmars-d-learn mailing list