http://bugs.winehq.org/show_bug.cgi?id=21526 Pierre Monteux <iampierremonteux(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iampierremonteux(a)gmail.com --- Comment #7 from Pierre Monteux <iampierremonteux(a)gmail.com> 2010-02-23 02:25:44 ---
__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:
On my system, it was not including the stdlib.h in include/msvcrt. It was including the stdlib.h in /usr/include/. I tested this by modifying winegcc.c about line 551 to make the stub like this create_file( main_stub, 0644, "#include <stdlib.h>\n" "#include \"/home/Pierre/wine/include/msvcrt/stdlib.h\"\n" "extern int wmain(int,wchar_t**);\n" "int main( int argc, char *argv[] )\n{\n" " return wmain( argc, __wargv );\n}\n" ); return compile_to_object( opts, main_stub, NULL ); After recompiling just winegcc and cmd.exe, the errors came out with a lot of messages like this /home/Pierre/wine/include/msvcrt/stdlib.h:40:1: warning: "EXIT_FAILURE" redefine d In file included from cmd.exe-nvOwXC.c:1: /usr/include/stdlib.h:53:1: warning: this is the location of the previous defini tion Is it supposed to be including the system stdlib.h? I'm using the latest wine-git in cygwin 1.7 in XP 32 bit. -- 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.