Calling C-Men (again!)
DanKarron at UCBVAX.BERKELEY.EDU
DanKarron at UCBVAX.BERKELEY.EDU
Wed Apr 10 06:40:34 AEST 1991
Thanks all who replied. However, the compiler is complaining again
and it wont let me assign a pointer value to the list.
Here is the decl:
...
float (**svd_line_list)[2][3]; /* a list of pointers to lines */
...
typedef struct LineTag {
float l[2][3],V[2][3];
int DrawMe,Inny,Outie;
} Line;
...
if(svd_line_list) /* allocate list space as we need it */
{
svd_line_list=realloc(svd_line_list,svd_line_count*sizeof(float *));
}
else
{
svd_line_list=calloc(svd_line_count,sizeof(float *));
}
svd_line_list[svd_line_count-1] = ArenaDirectory->Composite->SkeweringLines[l][i].V;
/* attach a pointer to our line */
What is the compiler complaining about ? I want to get the address of
this particular line at .V and save it in my list at svd_line_count-1 slot
in that list.
ccom: Warning: PixelPicker.c, line 147: illegal array size combination
svd_line_list[svd_line_count-1] = ArenaDirectory->Composite->Skewering
Lines[l][i].V;
------------------------------------------------------------------------
-------------^
| karron at nyu.edu (e-mail alias ) Dan Karron, Research Associate |
| Phone: 212 263 5210 Fax: 212 263 7190 New York University Medical Center |
| 560 First Avenue Digital Pager <1> (212) 397 9330 |
| New York, New York 10016 <2> 10896 <3> <your-number-here> |
More information about the Comp.sys.sgi
mailing list