From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sa-prd-fep-048.btinternet.com (mailomta26-sa.btinternet.com [213.120.69.32]) by sourceware.org (Postfix) with ESMTPS id 8EFEB3858D39 for ; Sat, 8 Jul 2023 09:12:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8EFEB3858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dronecode.org.uk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dronecode.org.uk Received: from sa-prd-rgout-004.btmx-prd.synchronoss.net ([10.2.38.7]) by sa-prd-fep-048.btinternet.com with ESMTP id <20230708091206.MQFI7361.sa-prd-fep-048.btinternet.com@sa-prd-rgout-004.btmx-prd.synchronoss.net>; Sat, 8 Jul 2023 10:12:06 +0100 Authentication-Results: btinternet.com; auth=pass (PLAIN) smtp.auth=jonturney@btinternet.com; bimi=skipped X-SNCR-Rigid: 6406812D0E51517B X-Originating-IP: [81.129.146.180] X-OWM-Source-IP: 81.129.146.180 (GB) X-OWM-Env-Sender: jonturney@btinternet.com X-VadeSecure-score: verdict=clean score=0/300, class=clean X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedviedrvdefgddufecutefuodetggdotefrodftvfcurfhrohhfihhlvgemuceutffkvffkuffjvffgnffgvefqofdpqfgfvfenuceurghilhhouhhtmecufedtudenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheplfhonhcuvfhurhhnvgihuceojhhonhdrthhurhhnvgihsegurhhonhgvtghouggvrdhorhhgrdhukheqnecuggftrfgrthhtvghrnhepheduueevueejueejgeeufeehtddtkeevtdduieelfeetteeffeejjedukeefgffgnecuffhomhgrihhnpegthihgfihinhdrtghomhenucfkphepkedurdduvdelrddugeeirddukedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheplgduledvrdduieekrddurddutdeingdpihhnvghtpeekuddruddvledrudegiedrudektddpmhgrihhlfhhrohhmpehjohhnrdhtuhhrnhgvhiesughrohhnvggtohguvgdrohhrghdruhhkpdhnsggprhgtphhtthhopedvpdhrtghpthhtoheptgihghifihhnsegthihgfihinhdrtghomhdprhgtphhtthhopehgshdqtgihghifihhnrdgtohhmsehglhhuvghlohhgihgtrdgtohhmpdhrvghvkffrpehhohhsthekuddquddvledqudegiedqudektddrrhgrnhhgvgekuddquddvledrsghttggvnhhtrhgrlhhplhhushdrtghomhdprghuthhhpghushgvrhep jhhonhhtuhhrnhgvhiessghtihhnthgvrhhnvghtrdgtohhmpdhgvghokffrpefiuedpoffvtefjohhsthepshgrqdhprhguqdhrghhouhhtqddttdeg X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from [192.168.1.106] (81.129.146.180) by sa-prd-rgout-004.btmx-prd.synchronoss.net (5.8.814) (authenticated as jonturney@btinternet.com) id 6406812D0E51517B; Sat, 8 Jul 2023 10:12:06 +0100 Message-ID: Date: Sat, 8 Jul 2023 10:12:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: iostream doesn't work (clang++) To: gs-cygwin.com@gluelogic.com, The Cygwin Mailing List References: <7e07e251-2ec6-b7a5-62da-8578eb638993@gmail.com> <47f9e50d-763b-e6a9-b2b0-8d3cc311a63b@maxrnd.com> <3c02f650-248e-9e03-94a8-d508c857474e@gmail.com> Content-Language: en-GB From: Jon Turney In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 07/07/2023 19:18, gs-cygwin.com--- via Cygwin wrote: > On Fri, Jul 07, 2023 at 04:48:08PM +0100, Jon Turney via Cygwin wrote: >> On 06/07/2023 00:08, Brian Inglis via Cygwin wrote: >>> >>> I have no idea why both compilers would include w32api headers as if >>> they were building Mingw cross compilers! >> >> You are allowed to use the Win32 API in Cygwin programs (with some caveats). > > Interesting. > > Is there some collected wisdom somewhere to which you could point me? > (specifically the caveats) The caveats are mentioned in the Cygwin UG. See: https://cygwin.com/cygwin-ug-net/setup-env.html#setup-env-win32 https://cygwin.com/cygwin-ug-net/using.html#pathnames-win32-api https://cygwin.com/cygwin-ug-net/programming.html#gcc-64 One additional caveat I am aware of which possibly should be documented there, but isn't, is basically "Don't try to use DllMain() in a Cygwin DLL, unless you know exactly what you are doing".