From: Paul G. <pga...@co...> - 2007-02-19 16:02:08
|
I think it may be because there are no windows headers in the source code. (linking) Keith, pls correct if wrong: if there are no windows headers in the source code than doesn't mingw assume it is running in DOS (ntvdm, as I recall, is nt Virtual Dos Machine)? Paul G. On 19 Feb 2007 at 13:58, Keith MARSHALL wrote: > Rene Sugar wrote: > > The following program is run in ntvdm.exe and hangs when run from > > the shell (under rxvt.exe). > > By `run in ntvdm.exe', do you mean run from the MSYS shell in a Woe32 > console, as opposed to in an RXVT? Or do you mean from cmd.exe? > > In any case... > > > gcc -c -o test.exe test.c > > > > test.c: > > > > static int* f() { static int v; return &v; } > > int main() { f(); return 0; } > > I cannot reproduce your problem, in any of these circumstances. > > > MSYS 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown; targ=MINGW32 > > MSYS 1.0.10 refuses to even start, on either my new PC, or even on my > old one, (both running Win2K SP4). On the old box I have MSYS-1.0.9, > while I've gone for MSYS-1.0.11 on the new one. However, I do have > one stand alone box, on which I have MSYS-1.0.10 but no MinGW. If I > compile your test case on the MSYS-1.0.11 box, and run the resultant > .exe on the MSYS-1.0.10 box, I still cannot reproduce your problem. > > > GNU bash, version 2.04.0(1)-release (i686-pc-msys); ENV=.profile GNU > > Make version 3.79.1,Built for i686-pc-msys; MAKE_MODE=unix gcc.exe > > (GCC) 3.4.2 (mingw-special); targ=MINGW32 GNU ld version 2.15.91 > > 20040904 > > 789320 Tue Mar 16 14:32:49 2004 /bin/msys-1.0.dll > > 52064 Thu Jan 02 08:05:27 2003 /bin/msysltdl-3.dll > > 135680 Tue Mar 16 14:32:48 2004 ./make.exe > > 88064 Tue Sep 21 01:15:22 2004 /mingw/bin/gcc.exe > > 642048 Sat Sep 04 16:45:43 2004 /mingw/bin/ld.exe > > Sysname=MINGW32_NT-5.1 OSTYPE=msys TERM=msys > > And I have: > > MSYS 1.0.11(0.46/3/2) 2006-08-07 12:54 i686 unknown; targ=MINGW32 GNU > bash, version 3.1.0(3)-release (i686-pc-msys); ENV=.profile GNU Make > version 3.79.1,Built for i686-pc-msys; MAKE_MODE=unix gcc.exe (GCC) > 3.4.5 (mingw special); targ=MINGW32 GNU ld version 2.16.91 20060119 > 732488 Tue Aug 08 18:33:24 2006 /bin/msys-1.0.dll > 52064 Thu Jan 02 08:05:27 2003 /bin/msysltdl-3.dll > 135680 Fri Apr 30 23:15:05 2004 /bin/make.exe > 89600 Wed Jan 18 20:06:00 2006 /mingw/bin/gcc.exe > 685568 Fri Jan 20 06:41:43 2006 /mingw/bin/ld.exe > Sysname=MINGW32_NT-5.0 OSTYPE=msys TERM=cygwin > > Regards, > Keith. > > ---------------------------------------------------------------------- > --- Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys-and earn > cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEV > DEV _______________________________________________ MinGW-users > mailing list Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users |