[cfe-dev] get clang to use gcc headers instead of Visual Studio headers

Mohamed Yousef harrrrpo at gmail.com
Fri May 28 02:46:50 PDT 2010


I can say that regarding C only ,, Clang signals errors only for following
VS 2010 standard headers

#include <complex.h>
#include <fenv.h>
#include  <inttypes.h>
#include  <tgmath.h>

when using : clang -cc1 -fms-extensions -C test/t.c

On 26 May 2010 09:47, Ahmed Charles <ahmedcharles at gmail.com> wrote:

>
>
> On Tue, May 25, 2010 at 10:15 PM, Anton Korobeynikov <
> anton at korobeynikov.info> wrote:
>
>> > So you cannot use it on Windows at all? If so, why has someone taken
>> > the trouble to put together instructions to build it on Windows
>> > in the first place?
>> Well given that Windows != Visual Studio.... :)
>
>
> (Sorry, Seemed I replied only to Anton only by acident.)
>
> I'd recommend installing the TDM version of MinGW and putting it in your
> path (make sure that the gcc/g++ exe's are named gcc.exe and g++.exe) and
> point clang at the MinGW headers. You'll have significantly less issues.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100528/1406b1c6/attachment.html>


More information about the cfe-dev mailing list