apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: compilation difficulties on BeOS
Date Sat, 02 Dec 2000 23:31:47 GMT
Sam TH <sam@uchicago.edu> writes:

> Then I encounter this error:
> 
> cc -DBEOS -DBEOS  -c -I../../include -Imm shmem.c
> ### mwcc Compiler Error:
> #	MM *newmm = mm_create(reqsize + sizeof(*newmm), file, MM_ALLOCATE_ENOUGH);
> #	                                              ^
> #   illegal type

Yep... this bug crept in last night; it showed up in a gcc warning on
FreeBSD in the wee hours...  sizeof(* void *) is undefined.

You can't do

  void *x;
  sizeof(*x)

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message