[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Help needed Building static binaries on Windows
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 25 Nov 2019 08:15:05 -0300
> 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>