lua-users home
lua-l archive

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


glen worstell wrote:
wanted: hints on compiling lpeg for windows. I'm trying to use msys/mingw,
and am getting lots of undefined reference messages such as:
undefined reference to `lua_tolstring'

I suspect I need some linker option to look in the lua dll for these
references?

LPeg compiles not differently from other Lua libraries.
Are you able to compile any other Lua library?

With mingw (no msys), I specify:
  -L<path_to_lua_dll> -l<name_of_lua_dll>

E.g., if I have c:\exe\lua5.1.dll, then:
  -Lc:\exe -llua5.1

--
Shmuel