From: Ilguiz L. <ila...@in...> - 2004-07-14 23:22:56
|
Christopher, On Wed, Jul 14, 2004 at 02:41:53PM -0500, Christopher C. Howard wrote: > I'm currently getting "iaxclient_lib.c(534) : error C2036: 'void *' : > unknown size". [...] > e->event.voice.data+total_consumed,e->event.voice.datalen-total_consumed, > iEncodeType); I see that the type of the e->event.voice.data pointer is (void *) indeed. Perhaps, the VC compiler won't assume that the size of the elements pointed to by such pointer is known. Is it OK to cast the pointer to (char *) or (uint8_t *) before adding an integer to it? This will tell the compiler that the size of the elements is 1: ((uint8_t *)e->event.voice.data) + total_consumed It seems you are compiling the version 1 of the library. Was it a deliberate choice? My make file from the iaxclient/lib CVS repository is configured to version 2 by default: # set to 2 for IAX2 IAXVER=2 Regards, -- Ilguiz Latypov tel. +1 (519) 569-8746 66 Wildlark Crescent Kitchener, Ontario N2N 3E9 |