apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sam TH <...@uchicago.edu>
Subject compilation difficulties on BeOS
Date Sat, 02 Dec 2000 04:06:17 GMT
I was trying to compile apr on a powerpc-apple-beos machine, and ran
into the following quite strange error:

ake[1]: Entering directory `/boot/home/apr/lib'
cc -DBEOS -DBEOS  -c -I../include -I../include/arch/beos apr_pools.c
### mwcc Compiler Error:
#	return malloc(reqsize);
#	                      ^
#   cannot convert
#   'int' to
#   'void *'
#----------------------------------------------------------
    File "/boot/home/apr/lib/apr_pools.c"; Line 905
#----------------------------------------------------------

What's strange about this is that malloc is defined in posix/stdlib.h
as 

void *malloc(size_t size);

so I really can't see what's being converted that the compiler doesn't
like.

Has anyone seen this before?
           
	sam th
	sam@uchicago.edu
	http://www.abisource.com/~sam/
	GnuPG Key:  
	http://www.abisource.com/~sam/key

Mime
View raw message