delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/05/06:59:41

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <714DFA46B9BBD0119CD000805FC1F53B01B5AED2@ukrux002.rundc.uk.origin-it.com>
From: "Moore, Paul" <Paul DOT Moore AT atosorigin DOT com>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Can't run Mingw gcc from Cygwin
Date: Thu, 5 Jul 2001 11:59:21 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

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.

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

When I execute this command line from a CMD.EXE prompt, it works fine.

Obviously, I'm doing something wrong, but what? I installed cygwin from
setup and took all the defaults.

Thanks for any help,
Paul.

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019