www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/03/10:43:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <49FDAD98.3040505@sbcglobal.net>
Date: Sun, 03 May 2009 14:43:36 +0000
From: Greg Chicares <gchicares AT sbcglobal DOT net>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: cygwin path issue
References: <23355651 DOT post AT talk DOT nabble DOT com>
In-Reply-To: <23355651.post@talk.nabble.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 2009-05-03 13:14Z, Maverick_gamer wrote:
> Hey
> i am using cygwin for compiling one of my project on windows machine..
> the makefile set the compiler but did not define any path..
> path to the compiler position is added in the PATH variable. now when
> running make it shows the error:
> ....
> c:\usr\local\sce\gcc\bin\g++: No such file or directory.
> ....
> But the file is there at this path.
> What i get from my research that when reading the above path, it reads it as
> a unix path and thus not read the "\".
> .
> I am not getting how to define the PATH so that it will pick the compiler
> file.

You could use 'cygpath', or just rewrite it yourself:
  PATH=/cygdrive/c/usr/local/sce/gcc/bin:$PATH

But why not just use Cygwin's own g++? If you've installed it
(using 'setup.exe), then it's already on $PATH. And even if
you haven't installed it, you might accidentally use a library
provided with Cygwin that would clash with your other compiler.
Besides, a non-Cygwin compiler won't understand Cygwin paths.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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