lua-users home
lua-l archive

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


>Link Error   : undefined: 'luaP_opnames' (data)
>Referenced from 'PrintCode' in print.c
>
>It seems that, since this data is defined already within lualib, Codewarrior
>doesn't like the fact that I am including the lopcodes.c source file again
>in the luac build. Of course if I remove from the list of luac sources, I
>get the undefined: 'luaP_opnames' error again.

You need to recompile lopcodes.c with LUA_OPNAMES defined, as it says in
INSTALL. Somewhere you have to tell Codewarrior this.

If all else fails, just add 
	#include "lopcodes.c"
at the end of print.c.
--lhf