On Thu, Dec 17, 2009 at 10:11:29AM +0100, Vincent Torri wrote:
> > >
> > > > 2) if not, is there a way to make the preprocessor not adding those
> > > > spaces
> > > >
> > > > See suggestions from Peter Damron.
> > > >
> > > > 'cpp' might do the job for you.
> > > >
> > > > Indeed, cpp is doing the trick. Though, there are still c++ comments. I
> > > remove them by passing cc -E but i have seen that cpp accepts -std or -x
> > c++
> > > as options in the man pages. I tried them, but they are not working (the
> > > error is 'unknown flag'). Is it normal that they are not recognized ?
> >
> > Looks like you are reading man page for gcc'ish cpp.
> >
>
> indeed. Isn't there any option (except -I and -D) for the solaris cpp ?
My man reads
-B Supports the C++ comment indicator `//'. With
this indicator, everything on the line after
the // is treated as a comment.
regards,
Fedor..