> Please add bin2c to the -dev package; it's most useful. LuaBinaries > packages already include it.
Hi Reuben, I think bin2c is best avoided (the Lua authors have the right idea). At the least, it's terribly named: "bin2c" sounds general, yet this tool has the specific job of generating Lua C API code. Not /usr/bin material in my opinion. As suggested by Luiz, please consider using xxd: $ apt-get install vim-common # provides "xxd" $ echo "print('hi')" > test.lua $ xxd -i test.lua > test_lua.c Then in your C program (quite easy to make a macro of this): int do_test_lua(lua_State* L) { #include "test_lua.c" return luaL_loadbuffer(L, (void*)test_lua, test_lua_len, "test.lua") || lua_pcall(L, 0, 0, 0); } --John -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]