lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Jeff,

I did try that, but it ends up with a huge list of errors.

  gcc  -o lui.so  -shared  -framework Foundation -framework AppKit
-fPIC -Isrc src/lui.c -I ../lua-src  -I ../libui  -L .  -lui

Undefined symbols for architecture x86_64:

  "_luaL_argerror", referenced from:

      _l_uiNewAttribute in lui-9b7f22.o

  "_luaL_checkinteger", referenced from:

      _l_uiAreaSetSize in lui-9b7f22.o

      _l_uiAreaBeginUserWindowResize in lui-9b7f22.o

      _l_uiAttributedStringInsertAtUnattributed in lui-9b7f22.o

      _l_uiAttributedStringDelete in lui-9b7f22.o

      _l_uiAttributedStringSetAttribute in lui-9b7f22.o

      _l_uiAttributedStringByteIndexToGrapheme in lui-9b7f22.o

      _l_uiAttributedStringGraphemeToByteIndex in lui-9b7f22.o

      ... and so on....


On Sat, May 5, 2018 at 11:23 PM, Jeff Pohlmeyer
<yetanothergeek@gmail.com> wrote:
> On Sat, May 5, 2018 at 5:18 PM, Avinash D'Silva
> <avinash.roshan.dsilva@gmail.com> wrote:
>
>>  gcc  -o lui.so  -shared  -framework Foundation -framework AppKit
>> -fPIC -Isrc src/lui.c -I ../lua-src  -I ../libui  -L . -llua -lui
> ...
>> lua: multiple Lua VMs detected
>> stack traceback:
>
> Don't use -llua when linking lui.so (The Lua interpreter already has
> lua linked in so the module doesn't need it.)
>
>  - Jeff
>



-- 
-
Warm regards,
Avinash D' Silva



☎ Mobile   | +353 892210993
✉ Gmail     | avinash.roshan.dsilva@gmail.com