From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <70b5b1273ae7de483a60caac79c1bb68@quanstro.net> From: erik quanstrom Date: Thu, 10 Sep 2009 05:40:26 -0400 To: comeau@comeaucomputing.com, 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] porting help please (gcc void pointer handling) Topicbox-Message-UUID: 6c9bff4c-ead5-11e9-9d60-3106f5b1d025 On Thu Sep 10 05:37:12 EDT 2009, comeau@panix.com wrote: > In article , > erik quanstrom wrote: > >> gcc happily compiles a definition like > >> #define CT_v249 ((void*)startLabel+464) > >> > > > >no it doesn't. > > > >$ cat > x.c > >char *startlab; > >long long offset = (void*)startlab+464; > >[...] > >$ gcc -Wall x.c > >x.c:2: error: initializer element is not constant > > That also has the issue of converting a void * to a long long, sorry. my mouse license has been revoked. that was actually void*. - erik