From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19708 invoked by alias); 15 Nov 2019 07:55:34 -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 19697 invoked by uid 89); 15 Nov 2019 07:55:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=breach X-HELO: ppsw-33.csi.cam.ac.uk Received: from ppsw-33.csi.cam.ac.uk (HELO ppsw-33.csi.cam.ac.uk) (131.111.8.133) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Nov 2019 07:55:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20180806.ppsw; h=Content-Type:MIME-Version:References:Message-ID: In-Reply-To:Subject:cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding :Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=M5WnLJaj4Sujn2pntMPYEWrS0Cfo92im79wWrZ23ETk=; b=tlYsopJNsgzlcB0u+863XHW/xt Kkh+TADzs/G/IviSpb97GYvvtcuHonUeYZIcgWCqERxhykqdxYxugif6qixag43525a4rf0y9Hxo+ Kfp3nhNxu1GBPcLnAvtgv//RrzdFSmXn3kwKoQNss0aTkGIin5lUnGN4vXn7OWijatwY=; Received: from host86-169-144-100.range86-169.btcentralplus.com ([86.169.144.100]:7700 helo=panamint) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:465) with esmtpsa (PLAIN:acn1) (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1iVWS2-0018ZJ-hg (Exim 4.92.3) (return-path ); Fri, 15 Nov 2019 07:55:30 +0000 Date: Fri, 15 Nov 2019 08:14:00 -0000 From: Arthur Norman To: Brian Inglis cc: cygwin@cygwin.com Subject: Re: linker fails with multiple definitions after inline thread_local var within class In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (WNT 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg00088.txt.bz2 > You appear to be running into a conflict with Cygwin managing Windows TLS, as > Cygwin does its own messing around to support Unix/Linux/POSIX/g++ semantics for > TLS and everything else under Windows. You should either use the supplied API, > or write a Windows program that allows you to control TLS within Windows rules > on what you can do with it. Otherwise you will have to get deep into the > changeable and not directly supported underbelly of the Cygwin implementation. Than you for the prompt response, but while the motivation for my example involved the Windows native TLS API the sample code that fails to link for me does not touch that at all and tried to be generic C++ code. Where it superficially appears that the cygwin TLS initialization code fails to pick up the "inline" attribute that I believe it should inherit from the fact that the TLS fields and methods that I use are inline and hence allowed to be defined/declared multiple times. So does my sample code that fails breach the C++ standard or is this a Cygwin limitation please? Arthur -- 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