Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!UCBVAX.BERKELEY.EDU!"Dan Karron From: Dan Karron@UCBVAX.BERKELEY.EDU Newsgroups: comp.sys.sgi Subject: Calling C-Men (again!) Message-ID: <9104092040.AA19495@karron.med.nyu.edu> Date: 9 Apr 91 20:40:34 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: karron@cmcl2.nyu.edu Organization: The Internet Lines: 39 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@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> |