delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/04/21/21:40:39

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: Yes, hits=5.9 required=5.0 tests=BAYES_50,BOTNET,RCVD_IN_DNSWL_NONE,TW_YG
X-Spam-Check-By: sourceware.org
Message-id: <4BCFA8F4.1060201@cygwin.com>
Date: Wed, 21 Apr 2010 21:40:04 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problems with paths.
References: <n2m961f6df41004211730hd06e7e6en8c221ae167bb1ee2 AT mail DOT gmail DOT com>
In-reply-to: <n2m961f6df41004211730hd06e7e6en8c221ae167bb1ee2@mail.gmail.com>
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 4/21/2010 8:30 PM, Moises Deangelo wrote:
> I installed cygwin, when compiling (my IDE is DEV-CPP) returned the
> following error message:
>
> cygwin warning
> MS-DOS-style path detected: C \ cygwin \ usr \ diego \ tst.c
> Preferred POSIX equivalent is: / usr / diego / tst.c
> CYGWIN environment variable option "nodosfilewarning" turns off this warning

<http://cygwin.com/cygwin-ug-net/using-cygwinenv.html>

> Consult the user's guide for more details about POSIX paths:
> http://cygwin.com/cygwin-ug-net/using.html # using-pathnames
>
> I accessed the site: http://cygwin.com/cygwin-ug-net/using.html #
> using-pathnames and looked at how the ways in cygwin.
>
> Then go to: cygpath http://cygwin.com/cygwin-ug-net/using-utils.html #
> That site says the cygpath converts the paths automatically.

"The cygpath program is a utility that converts Windows native filenames
  to Cygwin POSIX-style pathnames and vice versa."

There is no mention of "cygpath converts the paths automatically".  If you
want/need to use it, you must invoke it.

> If it does it automatically, what's wrong? Why GCC does not compile?
> It returns this error message and aborts?
>
> Can anyone help me?

The easiest way to solve your problem is to do what the message says,
in the order of (Cygwin's) preference:

   1. Use POSIX path syntax.
   2. Set your CYGWIN environment variable to nodosfilewarning.

A third alternative, very close to the second, is to ignore the warning.
As long as it works for you, alternatives 2 and 3 are basically equivalent
functionally.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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