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:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; q=dns; s=default; b=ReIHE KHJAv1zCOOXaHpBDHmA2irXzA8y66110fQSSxh9DYTSQ0UVAxnvdrJEuVcCUrjKe +zbS3MSCxuN1Zwt43vF7dBhtRHxUhkMMKS7G3ZBh299MzJtFvuDEQPzI5P9LUTZ7 JD/Lo0oBjR4dak3Koe1v/S2qiK7OlJS5OkFMzs= 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:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version:content-type; s=default; bh=Y2ATiFxjrGi X6Qoa9BUCpQbdgwk=; b=W6z2/lm/vATNFPifuKQ4AUfZqLlnRz1okgmnNhmJ8gy WtyRVA6ibmDaIGg1BzBHUiYM3zT+vQEFZ0e2c6AuHOFlecWUv5NU2hxsUVbefrCU 2/eMCLJdtJ+yuw7S8ukaY5I2ABSomkpZTwy5QweEfahWauQfnsKaNuw72m3wwCXM = 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.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 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=; Date: Fri, 15 Nov 2019 07:55:30 +0000 (GMT Standard Time) From: Arthur Norman To: Brian Inglis cc: cygwin AT cygwin DOT 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 > 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