[cfe-dev] C Standard Library

Antony Vennard antony.vennard at gmail.com
Tue Dec 21 11:54:13 PST 2010


On 21/12/10 19:49, Sebastian Redl wrote:
>>
>> Ok, I've just tried what I was having problems with and understood it
>> this time (last time was after a build which took several hours):
>>
>> #error: ERROR: Only Win32 target supported!
>>
>> When trying to compile a simple hello world application with my just
>> built clang.
>>
>> clang -o hello.exe -D_WIN32 hello.c fixes the problem.
>>
>> Is there any way to build these automatic defines into clang? Or have I
>> done something wrong in compilation?
> 
> I believe passing -ms-extensions pre-defines various macros that MSVC defines.
> 
> Sebastian

To the build process for clang I assume? I used cmake with the nmake
files because the vs2010 64-bit generator is broken in cmake 2.8.3 (bug).

Antony



More information about the cfe-dev mailing list