delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/16/14:59:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: May g++ output windows-style paths instead of cygwin-style one?
Date: Tue, 16 Aug 2005 11:55:14 -0700
Lines: 24
Message-ID: <ddtcqm$mfr$1@sea.gmane.org>
References: <000301c5a23d$04f46f00$cf34000a AT sven> <4301AB44 DOT 7DDCB59B AT dessent DOT net>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Thunderbird/1.0.6 Mnenhy/0.7
In-Reply-To: <4301AB44.7DDCB59B@dessent.net>
X-IsSubscribed: yes

Brian Dessent wrote:
> Angel Tsankov wrote:
> 
>>Is there any way I can force the cygwin build of g++ to output folders
>>using windows style (e.g. c:\folder\file) instead of cygwin style
>>(/cygdrive/c/folder/file) when writing dependency files (-MM option)?
> 
> No, there's no way to do that.  

Actually, there is: if the input path names to gcc/g++ are 
windows-style, it will happily emit windows-style paths to the -M output:

% gcc -M /cygdrive/c/Shankar/foo.c
foo.o: /cygdrive/c/Shankar/foo.c

% gcc -M c:/Shankar/foo.c
foo.o: c:/Shankar/foo.c

And just to remind the OP: "c:/Shankar" *IS* a windows-style name (the 
underlying Win32 API happily takes both \ and / as directory separators).

So you just have to define the directories in your Makefile using 
Windows-style paths, and preferably use "/" to avoid escape-related 
problems..


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