compiling lua
Jarrett Billingsley
jarrett.billingsley at gmail.com
Mon Sep 15 16:04:17 PDT 2008
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.
More information about the Digitalmars-d-learn
mailing list