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: List-Subscribe: List-Archive: List-Post: List-Help: , 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: 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 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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