lua-users home
lua-l archive

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


> While it compiles and creates "out.exe", it doesn't work, because
> "out.exe" doesn't print anything when run (no error, but also no
> hello).

What happens when you run srlua.exe? It should say something like

./srlua.exe: cannot find a Lua program in ./srlua.exe: no glue

Otherwise, try adding this line in main just after lua_State *L:

char name[MAX_PATH]; argv[0]=
GetModuleFileName(NULL,name,sizeof(name)) ? name : NULL

and this line just before the first #include:

#include <windows.h>