lua-users home
lua-l archive

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


On 07/27/2011 06:00 PM, Lorenzo Donati wrote:

gcc -Wall -Wextra -pedantic -Waggregate-return -Wbad-function-cast
-Wcast-align -Wcast-qual -Wdeclaration-after-statement
-Wdisabled-optimization -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef
-Wwrite-strings -Wunreachable-code -O2 -DNDEBUG -ansi
-I"G:\root\main\core\Lua\app\Lua-sys\include" -c lfs.c -o lfs.o \
&& gcc -shared -LG:\root\main\core\Lua\app\Lua-sys/bin
-LG:\root\main\core\Lua\app\Lua-sys/lib -O2 -Wall -pedantic -o lfs.dll
lfs.o -llua51 \
&& strip --strip-unneeded lfs.dll


You should remove the -ansi option. Many of the MSVC compatibility macros are disabled in standards mode.

--
- tom
telliamed@whoopdedo.org