delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/02/07/20:22:55

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:subject:from:to:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=OH9
+BE4sEiKk2LP2PqmpXmPY515PvRs8LiNUPTmQA1laQQId2Lo5TcFuzBO0Mki5xfb
8bTK+RIPCAsg4W3074oSB4gYXNzqPktBWtQYW/Tf2XYEGGfyupn1CBeX0b50yyw+
vx/yp4sURABYuU5Aispp8sMyuTn6m1YlpOeqdj8k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:subject:from:to:mime-version
:content-type:content-transfer-encoding; s=default; bh=gL+nAVM0Y
ldLEf9FgkMiIcNf9yk=; b=CMnVSGXLEjnPpGBotCt5Dr7cZJW/B4yPtW5FzwRY9
0soQK743vDanO1TCoaSLKLClwQZz0zNFzL2ofiKqGB3FwZpSjTrbMBvSz67cmjfb
JJGSxxkWBAfn/Hg0MhlqXYSOpWVvPBjvkIrdUkg7IdspHlKDPr3mD7RofcwmV4I6
ZE=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,FORGED_SPF_HELO,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=HImportance:Normal, HContent-Transfer-Encoding:8bit
X-HELO: mailhost.cotse.com
Message-ID: <MTAwMDAzNi5iaWxs.1581124920@quikprotect>
Date: Fri, 7 Feb 2020 20:22:00 -0500
Subject: Programs using std::filesystem with gcc 9.2.0 fail to run
From: velix AT bill DOT router5 DOT com
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

It's possible to compile and link programs that use std::filesystem with
the g++ 9.2.0 compiler for Cygwin.  For instance if I place the following
program into a file name "x.cpp":

    #include <iostream>
    #include <filesystem>

    int main()
    {
        std::filesystem::path p{"/tmp"};
        std::cout << p << std::endl;
    }

Then compile with:

    g++ -std=c++2a -Wall -O3 x.cpp

It builds successfully.  But running the output "a.exe" file exits
immediately with exit code 127.  It does not help if I also add
"-lstdc++fs" to the build command.

The output of "uname -a" is:
    CYGWIN_NT-6.1 price1 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin



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