version(D_Version2)

Scott S. McCoy tag at cpan.org
Wed Mar 12 21:23:12 PDT 2008


You could always just call cpp(1) directly.

I do this with various excessively for awk.

On Wed, 2008-03-12 at 09:14 -0700, Gregor Richards wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20080312/8bc5eb11/attachment.html>


More information about the Digitalmars-d mailing list