X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Received: by 10.50.7.204 with SMTP id l12mr8028461iga.103.1357876581363; Thu, 10 Jan 2013 19:56:21 -0800 (PST) Date: Thu, 10 Jan 2013 21:56:25 -0600 From: Yaakov (Cygwin/X) To: cygwin AT cygwin DOT com Subject: Re: Clang and windows headers Message-ID: <20130110215625.36b84333@YAAKOV04> In-Reply-To: <50EEEA49.1050507@alice.it> References: <50EEEA49 DOT 1050507 AT alice DOT it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Thu, 10 Jan 2013 17:20:25 +0100, Angelo Graziosi wrote: > Trying to compile a C++ source file including windows.h header with > clang++, fails with > > #error Must define a target architecture Thanks for the report. Clang defines _X86_ only for MinGW targets, not taking into account that we also need to work with w32api headers. I would say that its fortunate that this should be easy to patch, until... > Indeed now ROOT uses clang tools to build (GCC is used to bootstrap > ROOT's patched version of CLANG...). Nevertheless the same errors occurs > using Cygwin's CLANG as the above simple test case shows... You have *got* to be kidding me. Forking an entire compiler within a source package just for building that package? I'll admit I didn't see that coming. Anyways, I'll fix this shortly. Yaakov -- 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