lua-users home
lua-l archive

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



How can I compile LPeg on Windows? I have Visual C++ Express 2005.
As an alternative, you can compile it in cygwin with:

lpeg.dll: lpeg.c
       gcc -O2 -c -o lpeg.o lpeg.c
gcc -O -shared -o lpeg.dll lpeg.o -I../lua5.1/src -L../lua-5.1/src -llua51 test: test.lua lpeg.dll
       test.lua

// Niklas