This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-2.91.66
- To: Martin Minkler <minkler at xmailer dot informatik dot uni-bonn dot de>
- Subject: Re: egcs-2.91.66
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Wed, 03 May 2000 22:14:44 -0400
- cc: egcs-bugs at egcs dot cygnus dot com
Martin Minkler <minkler@xmailer.informatik.uni-bonn.de> said:
[...]
> to quote the wrong code: "x=(double *)calloc(dim*sizeof(double));"
The calloc(3) prototype is supposed to be in <stdlib.h>, either you didn't
include that or the header is badly broken in your setup. Here (Red Hat
6.2, gcc-2.95.3 snapshot from rawhide) I get for something like the above:
tst.c: In function `f':
tst.c:5: too few arguments to function `calloc'
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616