Let me clarify. "Setting environment for Cygwin" is just a comment in the batch file that calls 'make'. I am using 'Cygwin' settings, but trying to get MSYS-MINGW-GCC to work instead of CygwinGCC. The batch file is
@echo off PATH=C:/MSYS/1.0/bin;%PATH% rem set INCLUDE=C:/MSYS/1.0/mingw/include;%INCLUDE% rem set LIB=C:/MSYS/1.0/lib;%LIB% if "%2"=="" set target=all if "%2"=="build" set target=all if "%2"=="rebuild" set target=clean all if "%2"=="clean" set target=clean echo Setting environment for Cygwin echo "make.exe" make -s -d %target% -f %1 The version of Make is $ make -v GNU Make version 3.79.1, by Richard Stallman and Roland McGrath. Built for i686-pc-msys Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Report bugs to <bug-make@gnu.org>. "Paul D. Smith" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent by: "Paul cc: bug-make@gnu.org Smith" Subject: Re: 'fhandler_base::dup:' - Error <[EMAIL PROTECTED] m> 11/21/2005 05:24 PM Please respond to "Paul D. Smith" %% [EMAIL PROTECTED] writes: as> I have been using MSYS-MINGW-GCC to compile and link my C++ code. as> The problem I am having is following error. as> Building ------------ GCCAltiaGui.exe ------------ as> Executing: "C:\Rhapsody6.1\Share\etc\cygwinmake.bat" GCCAltiaGui.mak clean as> Setting environment for Cygwin as> "make.exe" as> 0 [main] make 2772 fhandler_base::dup: dup(some disk file) failed, as> handle 0, Win32 error 6 as> Cleanup as> Clean Done as> This happens when I try to execute 'make' for the first time. The as> version of 'make' is 3.79.1. Version of GCC is 3.2.3. The build as> is on Windows 2000 machine. Hi; it looks like you are using the Cygwin-modified version of GNU make. That version of make is supported by the Cygwin team, not this mailing list (we support only the standard version of GNU make, provided on the FSF web site), for problems which seem likely to be related to Cygwin changes. if it's a generic problem with make of course you can ask here, but the above error looks very much to me like a system-specific error that would need to be addressed by the Cygwin team. I suggest you contact them. Good luck! -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make