From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55512 invoked by alias); 8 Feb 2020 01:22:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 55410 invoked by uid 89); 8 Feb 2020 01:22:05 -0000 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 Received: from mail.cotse.net (HELO mailhost.cotse.com) (66.203.85.58) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 08 Feb 2020 01:22:03 +0000 Received: from out.packetderm.com (out.packetderm.com [66.203.85.62]) by mailhost.cotse.com (8.15.2/8.14.5) with ESMTPS id 0181M0ae004633 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 7 Feb 2020 20:22:00 -0500 (EST) (envelope-from velix@bill.router5.com) Received: from localhost (localhost[127.0.0.1]) (authenticated bits=0) by smtp (5.7.4/5.7.4) with ESMTPA id 0181M0Wm035578 for ; Fri, 7 Feb 2020 20:22:00 -0500 (EST) (envelope-from velix@bill.router5.com) Received: from HTTP by 127.0.0.1 with HTTP; Fri, 7 Feb 2020 20:22:00 -0500 Message-ID: Date: Sat, 08 Feb 2020 01:22:00 -0000 Subject: Programs using std::filesystem with gcc 9.2.0 fail to run From: velix@bill.router5.com To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2020-02/txt/msg00059.txt.bz2 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 #include 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