Lance R. Marrou (marrou++at++vsl.ist.ucf.edu)
Thu, 22 Dec 1994 09:50:52 -0500 (EST)
...
> The man page for pfCylAroundSegs says that it has the following prototype:
>
> void pfCylAroundSegs(pfCylinder *dst, pfSeg **segs, long nseg);
However, the actual prototype is:
extern void pfCylAroundSegs(pfCylinder* _dst,
const pfSeg** _segs, long _nseg);
...
>
> What am I missing? Probably something horribly simple in the typecasting,
> but I'm at a loss to see it at the moment.
...
Not horribly simple at all. The following will work though:
pfCylAroundSegs(&dst, (const pfSeg**)&(vol_segset.segs), cursegment);
I think the problem lies in the cc compiler. You can use (correctly) a
simple typecast of (pfSeg **), ignoring the const declaration if you
compile with CC. With cc, you need the const. Either way, you need the
pfSeg**.
_______________________________________________________
E-mail: marrou++at++vsl.ist.ucf.edu
IST __ WWW: http://www.vsl.ist.ucf.edu/~marrou
Visual / / ______ /\____ ______ ______
Systems / / / _ / / __ // ____// ____/
Lab / /__ / /_/ / / / / // /___ / __/_ R. Marrou
________/____//____/\\/_/ /_//_____//_____/____________
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:45 PDT