Boost logo

Boost Users :

Subject: Re: [Boost-users] [Proto] Vector Example Compilation Failure
From: Larry Evans (cppljevans_at_[hidden])
Date: 2011-01-03 14:32:13


On 01/03/11 12:44, Hossein Haeri wrote:
[snip]
>> 2) Preprocess the code first and compile it.
>
> Hmmm... How do I do that?
>
Use cpp, or, if the compiler is g++, use -E and capture the output, or
use, IIRC, the flag -save-temps, which would save the preprocessed code
in X.i where the compiled source is X.cpp, for any filename, X.

If you want something readable, then I'd recommend passing the output
from the above step through some reformatting program like indent on
linux.

HTH.

-Larry


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net