lua-users home
lua-l archive

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


> I have an xcode project that compiles the library code into a dylib fine, it
> compiles lua.c against that fine, but I can't get luac to compile and link
> correctly.
> 
> /usr/bin/ld: Undefined symbols:
> _luaP_opnames
> collect2: ld returned 1 exit status
>     /usr/bin/ld: Undefined symbols:
>     _luaP_opnames
>     collect2: ld returned 1 exit status

I don't know about xcode, but one solution is to link luac statically
with liblua.a.