File lua.h is missing the helper macro for single-state lua_dobuffer (am I the only person using lua_dobuffer? :-). This is what's required: #define lua_dobuffer(buff,size,name) (lua_dobuffer)(lua_state,buff,size,name) ashley