http://bugs.winehq.org/show_bug.cgi?id=21526 --- Comment #1 from David Gerard <dgerard(a)gmail.com> 2010-01-31 12:13:17 --- __wargv is defined in include/msvcrt/stdlib.h . Somehow this is not getting included in cmd.exe-XXXXXX.c when compiling in cygwin. cmd.exe-XXXXXX.c is, of course, a generated file: === make[2]: Entering directory `/home/Administrator/wine-git/programs/cmd' ../../tools/winegcc/winegcc -B../../tools/winebuild --sysroot=../.. -mconsole -municode batch.o builtins.o directory.o wcmdmain.o Cs.res Da.res De.res En.res Es.res Fr.res It.res Ja.res Ko.res Lt.res Nl.res No.res Pl.res Pt.res Ru.res Si.res Tr.res wcmdrc.res -o cmd.exe -lshell32 -luser32 -ladvapi32 -lkernel32 -lwine ../../libs/port/libwine_port.a cmd.exe-8n0LMQ.c: In function `main': cmd.exe-8n0LMQ.c:5: error: `__wargv' undeclared (first use in this function) cmd.exe-8n0LMQ.c:5: error: (Each undeclared identifier is reported only once cmd.exe-8n0LMQ.c:5: error: for each function it appears in.) winegcc: gcc failed === Andre Hentschel had suggestions to edit programs/cmd/Makefile (which we realise is a generated file): === 1. add "msvcrt" to "IMPORTS" (might be line 8) and run make in that folder 2. also add "-mno-cygwin" to "APPMODE" (might be line 6) and run make in that folder 3. remove the msvcrt of step 1 so that only the "-mno-cygwin"-change is in and run make in that folder === None of these worked. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.