Original Post
OK i'm building it in vs.net 05. I've gotten it to work when i dumped all the files into one project, which is sorta expected. However when i put all the lua code into a static linked project, and add reference to it in the main project... it compiles! Problem is lua gives a weird error when i call luaL_openlibs: "PANIC: unprotected error in call to Lua API (unable to get ModuleFileName) Press any key to continue . . ." If i try to load libraries this way: luaopen_base(L); /* opens the basic library */ luaopen_table(L); /* opens the table library */ luaopen_io(L); /* opens the I/O library */ luaopen_string(L); /* opens the string lib. */ luaopen_math(L); /* opens the math lib. */ then i get an unhandled exception when it gets to luaopen_io. Here's my project (replace "#.com" with "googlepages.com": http://focusedwolf.#.com/LuaIntegration.rar