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:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=f5l/7GkMXIvd4GWqUjJFtf5KhrL0h LK2/WeUdMXMTrpjlIRbkf+ThAELpafCyIng0gfPqZdktEVl5mHD/3Oafc6y2yh3k +4imyZtkSITK/eTWS0phzq5tVSCIST9k5FSy2eBSQkdnbyYT2Wz1CGY5/pMW7Lh/ N0rBR7e0/MmrOM= 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:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=MTOsoz2dds6c93QFP5S4Uu42Xf8=; b=q+o iec1rkswhQi3eHbWIrCpFcs3vbUMg2ZcaRq9Dpe2mZx5XeqEAKj2G5LTifQqiZAM 6Rr8POggrOVGkme9UcfUBZhXtbaT6LnWGp0yR/78dwXKqOFxFWztNG3y2mS5+ljV CezmyVhNrRbRCYPEuIWJrlBS1AJr8Uy2L2BP/IDQ= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=jony, JonY X-HELO: mail-io0-f172.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=SEKYBHgNS1Jyk6JbOBqVCLI1w44edSEWYzetGHid4yI=; b=t5kZwmZSQcKnyCvDmThLxcdOPqaaXbj+wosbmrVTQmpQjjK/kIRzx0auabFZ8rzQX8 s7PSDKzkQmaco490ycGvSqJNAEs7tFPPAdbqPgH8T2MVbVDg/jawPC+6u18lunekLdzc U0YVT1CLn1eKtm+5gz3AIcUWoo/hlciYFVPaQRJGmUVUyr48TB9TX2O0ri7M8YlR4/Hl Y07bpgjpxUB+ZDXW0aHLJ25qP5J85RQV/9/jeOCKZi0AyL5uAco9/H+5o5iBKeJ2ULyv Bl9eJ2d0Ve6TwZngZ7CrutYAXAIRrCvB15mxJP1g6OxYx+g14DHZ8e4UVzZzSXlLfQ1T /6uA== X-Gm-Message-State: ALKqPwfh6O/fO57k94vhnvFVEyVoHvJhDsCwGbQfsoz4Pv0BCDDwSvP2 cf4FPVl5hwk97haS3spxoZvg875VZEdNYHLOHI/FPA== X-Google-Smtp-Source: ADUXVKLCxwbzX4rIsLdH5t5j+tcGW7ltrgod8ChB+htr4M646QDX4cVSDthIwoI4QT0Lha08wHtpvBnOWrErQEJ7p5E= X-Received: by 2002:a6b:8794:: with SMTP id r20-v6mr2851037ioi.275.1527699299121; Wed, 30 May 2018 09:54:59 -0700 (PDT) MIME-Version: 1.0 From: Dai Conrad Date: Wed, 30 May 2018 12:54:58 -0400 Message-ID: Subject: Re: Updated: gcc-7.3.0-2 (x86/x86_64) To: cygwin mailing list Content-Type: text/plain; charset="UTF-8" On Wed, 30 May 2018 11:58 AM, JonY <10walls AT gmail DOT com> wrote: > > Does -static change anything? Interesting! It succeeds with g++ -std=c++17, and does this with clang++ -std=c++17: $ clang++ -std=c++17 -static -Wall -Wextra -O2 -o testa testa.cc /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/libstdc++.a(cow-string-inst.o):cow-string-inst.cc:(.data$_ZNSs4_Rep20_S_empty_rep_storageE[_ZNSs4_Rep20_S_empty_rep_storageE]+0x0): multiple definition of `std::string::_Rep::_S_empty_rep_storage' /tmp/testa-c0acb8.o:(.bss[_ZNSs4_Rep20_S_empty_rep_storageE]+0x0): first defined here clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation) >> #include > > I'm guessing Cygwin does not support the functionality declared in the > headers yet. If that were the case, it should not compile with g++ -std=c++11, gnu++14, or gnu++17, but it does. Also, a much cleaner error message could be shown with: #error shared_mutex not supported in the header file, instead of lots of "pthread_rwlock_* not declared in this scope". (Note: the first one, with the std::stringstream, still fails with -std=gnu++17) -- 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