Clang and windows headers
Yaakov (Cygwin/X)
yselkowitz@users.sourceforge.net
Fri Jan 11 03:56:00 GMT 2013
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
More information about the Cygwin
mailing list