On Thu, Oct 06, 2005 at 05:35:34PM +0000, Brian M. Carlson 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.
Why not? An extern C definition doesn't mean that it needs to be usable from C. It just means to use the C calling convention. -- Daniel Jacobowitz CodeSourcery, LLC -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]