Hello,
there is a (probably persistent) problem with compiling lfs.c with Visual Studio cl.exe: missing support for C99 - see the file attached.
There are two ways how to solve it:
- Make some minor corrections of the code (enclosing parts of the code into { ... } in most), or
- compile as C++ - but this requires some additional cast at a couple of places (void * -> char *) and adding
external "C" somewhere, also lfs.c -> lfs.cpp or adding "/TP" option when to be compiled with MS cl.exe.
Cl~.txt
Would you accept the changes if I make them and pass the altered lfc.c here?
- This would make the lfs more usable for those who use Visual Studio together with luarocks as a package manager...
Best regards,
Lukas