Problem with ImportC example?

bachmeier no at spam.net
Wed Jan 18 16:52:45 UTC 2023


On Wednesday, 18 January 2023 at 16:51:27 UTC, bachmeier wrote:
> On Wednesday, 18 January 2023 at 16:37:17 UTC, Ali Çehreli 
> wrote:
>> On 1/18/23 08:04, DLearner wrote:
>>
>> > Unfortunately, neither works:
>> > ```
>> > C:\Users\SoftDev>cl.exe
>> > 'cl.exe' is not recognized as an internal or external 
>> > command,
>> > operable program or batch file.
>>
>> That supports the theory that you don't have a C compiler 
>> installed that dmd can use for preprocessing C files.
>>
>> Ali
>
> The 
> [documentation](https://dlang.org/spec/importc.html#auto-cpp) 
> says
>
>> When compiling for Windows with the -m32mscoff or the -m64 
>> switch, cl.exe /P /Zc:preprocessor will be used as the 
>> preprocessor.
>
> It might be useful for someone to add more information. I would 
> certainly have no idea what that means if I tried to use 
> Windows.

Or perhaps stated better, I'd have no idea what I'm supposed to 
install or set up to get it to work.


More information about the Digitalmars-d-learn mailing list