[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Help compiling srlua on Windows
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Thu, 12 May 2011 01:02:49 +0200
I've already built successfully srlua on Windows using the "clean C
Then I noticed the file srlua.tgz and that it also contains a wsrlua.c
file which avoids displaying a DOS black box when running a
I tried to compile it, but it always fails, no matter what I try.
System: Windows XP
Compiler: tdm-gcc 4.3.1
I tried to compile wsrlua.c with the following invocation:
gcc -c -O2 -Wall -pedantic -std=c99 -mwindows -mwin32 -I
G:\root\main\core\Lua/app/Lua-sys/include winsrc/wsrlua.c -o
winsrc/wsrlua.c: In function 'thMain':
winsrc/wsrlua.c:13:16: error: '__argc' undeclared (first use in this
winsrc/wsrlua.c:13:16: note: each undeclared identifier is reported only
once for each function it appears in
winsrc/wsrlua.c:13:24: error: '__argv' undeclared (first use in this
mingw32-make: *** [build] Error 1
it always complains about those two missing identifiers: __argc and __argv.
I see that in the distribution there are some MS-compilers project
files, so I fear wsrlua.c is compilable only with MS toolchain.
Is there a way to compile it with my compiler?
Any help appreciated.