Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Thu, 5 Jul 2001 12:09:15 +0100 (BST) From: Cliff Hones Message-Id: <200107051109.MAA18531@trillian.uk.aonix.com> To: Paul DOT Moore AT atosorigin DOT com CC: cygwin AT cygwin DOT com In-reply-to: <714DFA46B9BBD0119CD000805FC1F53B01B5AED2 AT ukrux002 DOT rundc DOT uk DOT origin-it DOT com> (Paul DOT Moore AT atosorigin DOT com) Subject: Re: Can't run Mingw gcc from Cygwin References: <714DFA46B9BBD0119CD000805FC1F53B01B5AED2 AT ukrux002 DOT rundc DOT uk DOT origin-it DOT com> > I'm trying to run the Mingw gcc compiler from within Cygwin. My reason is to > use Cygwin/bash to run configure, but to build the packages using Mingw, so > that they have no Cygwin dependency at runtime - yes, I know about > -mno-cygwin, and that is an option, I guess, but I'd prefer to use the Mingw > compiler if possible - not least as it builds executables which use MSVCRT > rather than CRTDLL. The latest version of the cygwin gcc (2.95.3-5) now uses msvcrt (and crt2.o) when the -mno-cygwin option is used. > However, if I add my Mingw binaries directory to the front of PATH, via > export PATH=//c/Applications/Mingw/bin:$PATH > and try to compile a trivial program, I get an error > > $ gcc -o x.exe x.c > gcc.exe: installation problem, cannot exec `cpp0': No such file or directory mingw is not cygwin-aware, so may not behave quite as expected under cygwin bash. Try using the gcc "-v" flag to see which executables are being invoked. -- Cliff -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/