X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 88C463857C78
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cs.umass.edu
Authentication-Results: sourceware.org;
 spf=pass smtp.mailfrom=moss@cs.umass.edu
Subject: Re: Workaround for cygwin's way of linking folders?
To: Ken Brown <kbrown@cornell.edu>,
        Johnathan Schneider <johnny.schneider10@outlook.com>,
        "cygwin@cygwin.com" <cygwin@cygwin.com>
References: <CPZP284MB000578B94B75ED84DE1EF39E8ECF0@CPZP284MB0005.BRAP284.PROD.OUTLOOK.COM>
 <b0bd9dcf-15cc-8c01-ea9d-17562d14ab1d@cornell.edu>
From: Eliot Moss <moss@cs.umass.edu>
Message-ID: <c02dcb60-5327-86f3-e704-839af7ca63b3@cs.umass.edu>
Date: Sun, 6 Dec 2020 20:39:04 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
 Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <b0bd9dcf-15cc-8c01-ea9d-17562d14ab1d@cornell.edu>
Content-Language: en-US
X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: moss@cs.umass.edu
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0B81tZeh029528

On 12/6/2020 6:45 PM, Ken Brown via Cygwin wrote:
> On 12/6/2020 5:41 PM, Johnathan Schneider via Cygwin wrote:
>> Hi all,
>>
>> I'm setting up a cross platform development environment using Cygwin. Upon attempting to use 
>> Cygwin's CMake that is natively bundled, I discovered that Cygwin goes looking for the gcc in 
>> /usr/bin/cc, a folder that does not exist according to windows. I have familiarized myself with 
>> the Cygwin way of organizing it's folders, seen here 
>> https://cygwin.com/faq.html#faq.using.shortcuts and 
>> https://cygwin.com/faq.html#faq.using.directory-structure and thus I know that Cygwin's /usr/bin 
>> folder is in fact /bin - according to windows, anyways. However, I'm not familiar with how to work 
>> around that on windows. In particular, virtually all of my IDEs' attempts to call CMake fail, 
>> because I proceed to ask it to call the gcc and windows, as is explained in the above FAQ's, does 
>> not recognize the Cygwin-way of referencing folders.
>>
>> Alas, my question - what is the recommended workaround?
> 
> It's hard to answer this question without knowing exactly what your IDE is doing.  Can you give a 
> detailed recipe for reproducing the problem without using an IDE?  In general, Cygwin's CMake should 
> have no problem executing /usr/bin/cc unless something is interfering with Cygwin's normal path 
> handling routines.

My guess: Your IDE is Windows based, and it is unlikely to play well with Cygwin.  It probably 
expects Windows paths, etc.  MinGW might gives Unix-like tools that work better for you, or you can 
find Windows based CMake, C compilers, etc.

With some effort, you _might_ get the IDEA to invoke the Cygwin program by giving the full Windows 
path to it, but /usr/bin/cc is going to expect Cygwin format paths, which a Windows based IDE won't 
know anything about ...

My guess could be wrong, of course!

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

