[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: When is the C++ transition needed?



On 10/6/05, Brian M. Carlson <sandals@crustytoothpaste.ath.cx> wrote:
> On Thursday 06 October 2005 12:45, Henning Makholm wrote:
> > I notice that the newest upload of pstoedit has reverted the C++
> > transition name change; instead of libpstoedit0c2 sid now contains
> > libpstoedit0, as in sarge.
>
> This is, IMHO, incorrect.
>
> > However, the library exports things with interfaces such as
> >
> > #ifdef __cplusplus
> > extern "C" DLLEXPORT
> > int pstoeditwithghostscript(int argc,
> >                             const char *
> >                             const argv[],
> >                             ostream& errstream,
>
> You must not pass by reference with an extern "C" declaration, because C
> doesn't support that.

ostream sounds like C++ too.



Reply to: