delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/03/19/11:02:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=dkim1; b=mEAA34och0ci8TrHUn
62psH/Ntu8MzFb+Ec6rKNXiVEPeDEfWrxKeQObnbTMY/v2Vez4D46rY9rzyzgrS3
RPCqIKg/oAiqcBY8HE91AqXLVSgMNgxhGq09jhfHZx33Ldo5LfM45We9UIUEXovu
QvvKbD6Q14NLpY7ROn/TTmz+Y=
DKIM-Signature: v=1; a=rsa-sha1; c=simple; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:reply-to:mime-version:to
:subject:references:in-reply-to:content-type
:content-transfer-encoding; s=dkim1; bh=egIk0Eh1vWiW+jpm/96DUQoq
6Qw=; b=U/CEL4Ja3GaV/iirqa9Yk/7YteqpLH0a5wHYy1F66PQRcLDMT7/CPlNd
O/K58HEUOZhEbBXrXrJjMarIZnQSkZIjzlGvOLu66MGKQx4YUuJqail8oXU/UCDs
xF2hIJT2qWrLdv39m0XdCNic7OTmJp0qY4uqpOCH7ZnynKTeWjU=
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
X-SWARE-Spam-Status: No, hits=2.8 required=5.0 tests=AWL,BAYES_00,BOTNET,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-id: <51487DDA.1040700@cygwin.com>
Date: Tue, 19 Mar 2013 11:01:46 -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 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Default File Path
References: <1363693403984-97064 DOT post AT n5 DOT nabble DOT com>
In-reply-to: <1363693403984-97064.post@n5.nabble.com>

On 3/19/2013 7:43 AM, AlanWB wrote:
> I am developing an application using NetBeans CygWin C++, and it is messing
> up the default file path. When I try to read a file using
>
>    fopen (fname, "r")
>
> if the file name does not specify the directory, instead of assuming that
> the file is in the current directory, it seems to prefix a file path
> including "cygdrive". The result is that I have to specify the full file
> path. But this is not desirable for various reasons.
>
> Help! Does any body know how to get round this?

This sounds like a question better directed to the NetBeans folks as
it has to do with how they use Cygwin's tools in their environment.

-- 
Larry

_____________________________________________________________________

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