Swaminathan N. (swami++at++evl.uic.edu)
Wed, 2 Jul 1997 10:16:18 -0500 (CDT)
>
> Hi -
>
> I'm trying to declare an array of pfDCS's. I tried:
>
> pfDCS dcsArray[4];
>
> and get the error: "storage size for 'dcsArray' isn't known"
yikes! Here are some things wrong with this statement. pfNodes can only be
created in the shared arena, while here, you are creating them on the stack.
If you subsequently do a
pfNode *nodeArray = dcsArray
nodeArray[1] which is the same as *(nodeArray + sizeof(pfNode)) will not be
what you expect. What you might want is something similar to
*(nodeArray + sizeof(pfDCS)). Also,
delete nodeArray
will not call pfDCS's destructor even though pfNode has a virtual destructor.
Of course, none of these things make sense in the Performer context.
That said, your problem is that you've forgotten to include
<Performer/pf/pfDCS.h> :-)
bye
Swami
>
> if I try:
>
> pfDCS *dcsArray;
> dcsArray = (pfDCS*) pfCalloc(4, sizeof(pfDCS), NULL );
>
> I get the error:
>
> "Reference of an expression of void type or an incomplete type."
>
> I think I have all the proper include files and compilation links. What
> am I doing wrong?
>
> Ryan McKinley
>
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
v Swaminathan Narayanan ^
v swami++at++evl.uic.edu ^
v Office: 996-3002 ^
v Home: 850-2726 ^
v http://www.evl.uic.edu/swami ^
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:55:34 PDT