version(D_Version2)
Gregor Richards
Richards at codu.org
Wed Mar 12 09:14:52 PDT 2008
Alexander Panek wrote:
> Derek Parnell wrote:
>> On Wed, 12 Mar 2008 17:56:49 +0900, Bill Baxter wrote:
>>
>>> I just resorted to this in something I was doing the other day:
>>>
>>> > gcc -C -E -xc file_in.d | sed -e "s/^#/#line/" > file.d
>>> > dmd file.d
>>
>> I have no idea what that means.
>> I don't use gcc and I run D in a Windows environment. I use Linux
>> daily at
>> the office because that's I develop software for (but not in C/C++) so I
>> understand the 'sed' part is, but what's gcc doing?
>>
>
> Preprocessing, probably?
Yeah, this is the "simple" way of using the C preprocessor with any
language.
- Gregor Richards
More information about the Digitalmars-d
mailing list